Skip to content

Commit ffda0e0

Browse files
authored
Merge pull request #143 from cozy/add-ach
feat: Add ACH documentation
2 parents 23b9c32 + 19e80dc commit ffda0e0

7 files changed

Lines changed: 251 additions & 23 deletions

File tree

OUTSIDE_DOCS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ eslint-config-cozy-app https://github.com/cozy/cozy-libs.git packages/eslint-con
1515
cozy-flags https://github.com/cozy/cozy-libs.git packages/cozy-flags
1616
cozy-realtime https://github.com/cozy/cozy-libs.git packages/cozy-realtime
1717
cozy-banks https://github.com/cozy/cozy-banks.git .
18+
ach https://github.com/cozy/ach.git .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ to search for information only in one location.
3838
Each repository maintains its own [table of contents](https://github.com/cozy/cozy-doctypes/blob/master/toc.yml),
3939
which controls what is shown under the References menu.
4040

41-
See [./build.sh](./build.sh), and [./add_external_docs.py](./add_external_docs.py) scripts for more information.
41+
See [./build.sh](./build.sh), and [./generate_config.py](./generate_config.py) scripts for more information.
4242

4343
The edit links displayed in the header of each article are modified via Javascript to handle outside repositories (mkdocs does not support
4444
this natively).

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ rm -rf docs/*
66
cp index.html docs/
77
cp CNAME docs/
88

9-
python add_external_docs.py --fetch
9+
python generate_config.py --fetch
1010

1111
mkdocs build -f mkdocs.yml
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Adds table of contents of each external documentation to the
3-
References menu
2+
- Fetches external repositories containing docs (listed in OUTSIDE_DOCS)
3+
- Generate mkdocs.yml from mkdocs.yml.tpl
44
"""
55

66
import yaml
@@ -190,7 +190,7 @@ def main(argv):
190190
if '--fetch' in argv:
191191
fetch_all_external_docs_from_file(OUTSIDE_DOCS)
192192

193-
with open('./mkdocs.yml') as f:
193+
with open('./mkdocs.yml.tpl') as f:
194194
data = ordered_load(f, yaml.SafeLoader)
195195

196196
with open(OUTSIDE_DOCS) as f:
@@ -213,5 +213,10 @@ def main(argv):
213213

214214
with open('mkdocs.yml', 'w+') as f:
215215
ordered_dump(data, f, indent=2, default_flow_style=False, Dumper=yaml.SafeDumper)
216+
f.seek(0, 0)
217+
content = f.read()
218+
f.seek(0, 0)
219+
warning = '#\n# THIS FILE IS AUTOMATICALLY GENERATED, PLEASE EDIT `mkdocs.yml.tpl` AND LAUNCH `python generate_config.py`\n#\n'
220+
f.write(warning + content)
216221

217222
main(sys.argv)

mkdocs.yml

Lines changed: 156 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#
2+
# THIS FILE IS AUTOMATICALLY GENERATED, PLEASE EDIT `mkdocs.yml.tpl` AND LAUNCH `python generate_config.py`
3+
#
14
site_name: Cozy Developer Documentation
25
docs_dir: src
36
site_url: https://docs.cozy.io/
@@ -35,25 +38,111 @@ nav:
3538
- Install Cozy Drive on GNU/Linux: howTos/sync/linux.md
3639
- Libraries:
3740
- Develop an application:
38-
- Access data (client): <cozy-client>
39-
- Build a UI (ui): <cozy-ui>
40-
- Define data (doctypes): <cozy-doctypes>
41+
- Define data (doctypes):
42+
- README: cozy-doctypes/docs/README.md
43+
- Accounts: cozy-doctypes/docs/io.cozy.accounts.md
44+
- Apps: cozy-doctypes/docs/io.cozy.apps.md
45+
- Banking doctypes: cozy-doctypes/docs/io.cozy.bank.md
46+
- Bills: cozy-doctypes/docs/io.cozy.bills.md
47+
- Connectors: cozy-doctypes/docs/io.cozy.konnectors.md
48+
- Contacts: cozy-doctypes/docs/io.cozy.contacts.md
49+
- Files: cozy-doctypes/docs/io.cozy.files.md
50+
- Files metadata: cozy-doctypes/docs/io.cozy.files_metadata.md
51+
- Identities: cozy-doctypes/docs/io.cozy.identities.md
52+
- Notifications: cozy-doctypes/docs/io.cozy.notifications.md
53+
- Remote requests: cozy-doctypes/docs/io.cozy.remote.requests.md
54+
- Session logins: cozy-doctypes/docs/io.cozy.sessions.logins.md
55+
- Permissions: cozy-doctypes/docs/io.cozy.permissions.md
56+
- Photos Albums: cozy-doctypes/docs/io.cozy.photos.albums.md
57+
- Procedures: cozy-doctypes/docs/io.cozy.procedures.md
58+
- Sessions Logins: cozy-doctypes/docs/io.cozy.sessions.logins.md
59+
- Settings: cozy-doctypes/docs/io.cozy.settings.md
60+
- Sharings: cozy-doctypes/docs/io.cozy.sharings.md
61+
- Accounts Types: cozy-doctypes/docs/io.cozy.account_types.md
62+
- Autocategorization: cozy-doctypes/docs/cc.cozycloud.autocategorization.md
63+
- Exports: cozy-doctypes/docs/io.cozy.exports.md
64+
- Jobs: cozy-doctypes/docs/io.cozy.jobs.md
65+
- OAuth Clients: cozy-doctypes/docs/io.cozy.oauth.clients.md
66+
- OAuth Access Codes: cozy-doctypes/docs/io.cozy.oauth.access_codes.md
67+
- Triggers: cozy-doctypes/docs/io.cozy.triggers.md
68+
- Triggers state: cozy-doctypes/docs/io.cozy.triggers.state.md
69+
- Remote requests: cozy-doctypes/docs/io.cozy.remote.requests.md
70+
- Sessions: cozy-doctypes/docs/io.cozy.sessions.md
71+
- Shared: cozy-doctypes/docs/io.cozy.shared.md
72+
- Terms: cozy-doctypes/docs/io.cozy.terms.md
73+
- Bets Unibet: cozy-doctypes/docs/com.unibet.bets.md
74+
- Access data (client):
75+
- Getting started: cozy-client/getting-started.md
76+
- Using relationships: cozy-client/relationships.md
77+
- cozyMetadata maintenance: cozy-client/metadata.md
78+
- React integration: cozy-client/react-integration.md
79+
- Other details: cozy-client/details.md
80+
- Cozy Client API: cozy-client/api/cozy-client.md
81+
- Cozy Pouch Link API: cozy-client/api/cozy-pouch-link.md
82+
- Cozy Stack Client API: cozy-client/api/cozy-stack-client.md
83+
- Build a UI (ui): cozy-ui/README.md
4184
- Advanced:
42-
- Realtime data (realtime): <cozy-realtime>
43-
- Native devices (device-helper): <cozy-device-helper>
85+
- Realtime data (realtime): cozy-realtime/README.md
86+
- Native devices (device-helper): cozy-device-helper/README.md
4487
- Develop a konnector:
45-
- Scrape data (konnector-libs): <cozy-konnector-libs>
46-
- konitor: <konitor>
47-
- Publish on the store (app-publish): <cozy-app-publish>
88+
- Scrape data (konnector-libs):
89+
- README: cozy-konnector-libs/README.md
90+
- API: cozy-konnector-libs/api.md
91+
- CLI: cozy-konnector-libs/cli.md
92+
- Develop: cozy-konnector-libs/dev.md
93+
- Errors: cozy-konnector-libs/errors.md
94+
- Operation linking: cozy-konnector-libs/operation-linking.md
95+
- Synchronization: cozy-konnector-libs/synchronization.md
96+
- konitor: konitor/cli.md
97+
- Publish on the store (app-publish): cozy-app-publish/README.md
4898
- Dev tools:
49-
- Babel preset: <babel-preset-cozy-app>
50-
- Commitlint: <commitlint-config-cozy>
51-
- ESLint: <eslint-config-cozy-app>
99+
- Babel preset: babel-preset-cozy-app/README.md
100+
- Commitlint: commitlint-config-cozy/README.md
101+
- ESLint: eslint-config-cozy-app/README.md
102+
- ACH: ach/README.md
52103
- Advanced:
53-
- Stack server: <cozy-stack>
54-
- Registry server: <cozy-apps-registry>
55-
- Applications:
56-
- Cozy Banks: <cozy-banks>
104+
- Stack server:
105+
- README: cozy-stack/README.md
106+
- Usage:
107+
- Install the cozy-stack: cozy-stack/INSTALL.md
108+
- Configuration file: cozy-stack/config.md
109+
- Managing Instances: cozy-stack/instance.md
110+
- Security: cozy-stack/security.md
111+
- Manpages of the command-line tool: cozy-stack/cli/cozy-stack.md
112+
- How-to guides for developpers:
113+
- Develop a client-side app: cozy-stack/client-app-dev.md
114+
- Running and building Docker images: cozy-stack/docker.md
115+
- Adding a new doctype: cozy-stack/doctype.md
116+
- Working with the stack assets: cozy-stack/assets.md
117+
- Build a release: cozy-stack/release.md
118+
- The contributing guide: cozy-stack/CONTRIBUTING.md
119+
- Explanations:
120+
- Sharing design: cozy-stack/sharing-design.md
121+
- Workflow of the konnectors: cozy-stack/konnectors-workflow.md
122+
- List of services:
123+
- /auth - Authentication & OAuth: cozy-stack/auth.md
124+
- /apps - Applications Management: cozy-stack/apps.md
125+
- ' /apps - Apps registry': cozy-stack/registry.md
126+
- ' /apps - Konnectors': cozy-stack/konnectors.md
127+
- /data - Data System: cozy-stack/data-system.md
128+
- ' /data - Mango': cozy-stack/mango.md
129+
- ' /data - CouchDB Quirks': cozy-stack/couchdb-quirks.md
130+
- ' /data - PouchDB Quirks': cozy-stack/pouchdb-quirks.md
131+
- /files - Virtual File System: cozy-stack/files.md
132+
- ' /files - References of documents in VFS': cozy-stack/references-docs-in-vfs.md
133+
- /intents - Intents: cozy-stack/intents.md
134+
- /jobs - Jobs: cozy-stack/jobs.md
135+
- ' /jobs - Workers': cozy-stack/workers.md
136+
- /move - Move, export and import an instance: cozy-stack/move.md
137+
- /notifications - Notifications: cozy-stack/notifications.md
138+
- /public - Public: cozy-stack/public.md
139+
- /permissions - Permissions: cozy-stack/permissions.md
140+
- /realtime - Realtime: cozy-stack/realtime.md
141+
- /remote - Proxy for remote data/API: cozy-stack/remote.md
142+
- /settings - Settings: cozy-stack/settings.md
143+
- ' /settings - Terms of Services': cozy-stack/user-action-required.md
144+
- /sharings - Sharing: cozy-stack/sharing.md
145+
- Registry server: cozy-apps-registry/README.md
57146
theme:
58147
custom_dir: cozy-theme
59148
name: material
@@ -65,8 +154,6 @@ theme:
65154
font:
66155
text: Lato
67156
code: Ubuntu Mono
68-
feature:
69-
tabs: true
70157
markdown_extensions:
71158
- admonition
72159
- codehilite
@@ -78,5 +165,57 @@ markdown_extensions:
78165
- toc:
79166
permalink: true
80167
extra:
168+
outside_docs:
169+
- name: cozy-app-publish
170+
repo: https://github.com/cozy/cozy-app-publish.git
171+
subdir: .
172+
- name: cozy-apps-registry
173+
repo: https://github.com/cozy/cozy-apps-registry.git
174+
subdir: .
175+
- name: cozy-client
176+
repo: https://github.com/cozy/cozy-client.git
177+
subdir: docs
178+
- name: cozy-client-js
179+
repo: https://github.com/cozy/cozy-client-js.git
180+
subdir: docs
181+
- name: cozy-ui
182+
repo: https://github.com/cozy/cozy-ui.git
183+
subdir: docs
184+
- name: cozy-doctypes
185+
repo: https://github.com/cozy/cozy-doctypes.git
186+
subdir: .
187+
- name: cozy-konnector-libs
188+
repo: https://github.com/konnectors/libs.git
189+
subdir: packages/cozy-konnector-libs/docs
190+
- name: cozy-scripts
191+
repo: https://github.com/cozy/create-cozy-app.git
192+
subdir: packages/cozy-scripts/docs
193+
- name: cozy-stack
194+
repo: https://github.com/cozy/cozy-stack.git
195+
subdir: docs
196+
- name: konitor
197+
repo: https://github.com/konnectors/konitor.git
198+
subdir: docs
199+
- name: babel-preset-cozy-app
200+
repo: https://github.com/cozy/cozy-libs.git
201+
subdir: packages/babel-preset-cozy-app
202+
- name: commitlint-config-cozy
203+
repo: https://github.com/cozy/cozy-libs.git
204+
subdir: packages/commitlint-config-cozy
205+
- name: cozy-device-helper
206+
repo: https://github.com/cozy/cozy-libs.git
207+
subdir: packages/cozy-device-helper
208+
- name: eslint-config-cozy-app
209+
repo: https://github.com/cozy/cozy-libs.git
210+
subdir: packages/eslint-config-cozy-app
211+
- name: cozy-flags
212+
repo: https://github.com/cozy/cozy-libs.git
213+
subdir: packages/cozy-flags
214+
- name: cozy-realtime
215+
repo: https://github.com/cozy/cozy-libs.git
216+
subdir: packages/cozy-realtime
217+
- name: ach
218+
repo: https://github.com/cozy/ach.git
219+
subdir: .
81220
search:
82221
tokenizer: "[^a-z\u0430-\u044F\u04510-9\\-\\.]"

mkdocs.yml.tpl

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
site_name: Cozy Developer Documentation
2+
docs_dir: src
3+
site_url: https://docs.cozy.io/
4+
site_dir: docs/en
5+
site_favicon: img/favicon.png
6+
repo_url: https://github.com/cozy/cozy.github.io/
7+
edit_uri: edit/dev/src/
8+
site_description: Cozy documentation
9+
site_author: CozyCloud - https://cozy.io
10+
extra_css:
11+
- css/extra.css
12+
extra_javascript:
13+
- extra.js
14+
nav:
15+
- Home: index.md
16+
- Tutorials:
17+
- Create Your Application: tutorials/app.md
18+
- Develop a Connector:
19+
- Introduction: tutorials/konnector/index.md
20+
- Basic structure: tutorials/konnector/getting-started.md
21+
- Scrape data: tutorials/konnector/scrape-data.md
22+
- Save data: tutorials/konnector/save-data.md
23+
- Package your connector: tutorials/konnector/packaging.md
24+
- Self-Host on Debian: tutorials/selfhost-debian.md
25+
- How-to:
26+
- Dev:
27+
- Run an App in a Cozy using Docker: howTos/dev/runCozyDocker.md
28+
- Use Hot Module Replacement in Your App: howTos/dev/hmr.md
29+
- Make a Mobile App Using Cordova: howTos/dev/cordova.md
30+
- Connect a Mobile App to Your Local Stack: howTos/dev/connect-mobile-app-local-stack.md
31+
- Send and Receive E-mails in Development: howTos/dev/sendmail.md
32+
- Our Front-End Git Flow: references/git-flow.md
33+
- Technical introduction to the Cozy platform: references/tech-intro.md
34+
- Synchronize:
35+
- Install Cozy Drive on GNU/Linux: howTos/sync/linux.md
36+
- Libraries:
37+
- Develop an application:
38+
- Access data (client): <cozy-client>
39+
- Build a UI (ui): <cozy-ui>
40+
- Define data (doctypes): <cozy-doctypes>
41+
- Advanced:
42+
- Realtime data (realtime): <cozy-realtime>
43+
- Native devices (device-helper): <cozy-device-helper>
44+
- Develop a konnector:
45+
- Scrape data (konnector-libs): <cozy-konnector-libs>
46+
- konitor: <konitor>
47+
- Publish on the store (app-publish): <cozy-app-publish>
48+
- Dev tools:
49+
- Babel preset: <babel-preset-cozy-app>
50+
- Commitlint: <commitlint-config-cozy>
51+
- ESLint: <eslint-config-cozy-app>
52+
- ACH: <ach>
53+
- Advanced:
54+
- Stack server: <cozy-stack>
55+
- Registry server: <cozy-apps-registry>
56+
- Applications:
57+
- Cozy Banks: <cozy-banks>
58+
theme:
59+
custom_dir: cozy-theme
60+
name: material
61+
palette:
62+
primary: blue
63+
accent: blue
64+
logo:
65+
icon: cloud
66+
font:
67+
text: Lato
68+
code: Ubuntu Mono
69+
feature:
70+
tabs: true
71+
markdown_extensions:
72+
- admonition
73+
- codehilite
74+
- extra
75+
- footnotes
76+
- meta
77+
- sane_lists
78+
- smarty
79+
- toc:
80+
permalink: true
81+
extra:
82+
search:
83+
tokenizer: "[^a-z\u0430-\u044F\u04510-9\\-\\.]"

serve.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

3-
python add_external_docs.py
3+
python generate_config.py
44
mkdocs serve

0 commit comments

Comments
 (0)