You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generator/README.md
+5-119Lines changed: 5 additions & 119 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ This script generates and updates a number of markdown pages for the documentati
6
6
7
7
### How to regenerate documentation
8
8
9
-
Generate all files → save to [/_output](_output)
10
-
More details for each script can be found in the docstrings.
9
+
Generate files → save to [_output](_output):
10
+
_More details for each script can be found in the docstrings._
11
11
12
12
```
13
13
python3 generator/generate_docs.py
@@ -44,127 +44,13 @@ Files generated or updated for the [openad-toolkit] repo:
44
44
Other files:
45
45
-[commands.csv](generator/_output/other/commands.csv) overview file (not used, for record only)
46
46
47
-
48
-
### What this does
49
-
50
-
1. Use the descriptions from the [`/source`](./source) folder to update:
51
-
- The `README.md` with OpenAD description
52
-
- The `README/plugins.md` with plugins description
53
-
- The [openad_intro] text (/openad/helpers/output_content.py) that is displayed when running the `intro` command
54
-
- The informational paragraphs that are displayed when running the `? workspace`, `? mws`, `? tookit`, `? context` and `? run` commands (see _output_content_ in [main.py](/openad/app/main.py))
55
-
- The [Base Concepts](https://acceleratedscience.github.io/openad-docs/base-concepts.html) page on the documentation website
56
-
1. Duplicate all the README markdown pages, prepare them for ***Just the Docs*** consumption, then copy them over to the documentation repository if it's available
57
-
1. Generate two additional bespoke pages for the documentation website:
2. Update the [llm_description.txt](/openad/user_toolkits/DS4SD/llm_description.txt) for each individual plugin with the correct commands, used for LLM training.
61
-
62
47
<br>
63
48
64
49
### How it works
65
50
66
-
- The `/source` folder is the "single source of truth" and contains a number of text files with descriptions for OpenAD and some of its core concepts.
67
-
- The `/input` folder contains the markdown templates that are used to generate the markdown pages for the [openad-docs] repository. The header info in the input files defines the order of pages in the side navigation.
68
-
- The `/output` folder contains all the files that are exported by the script:
69
-
-`/markdown`<br>The markdown files for the [openad-docs] repository:
-[csv/commands.csv](output/csv/commands.csv) - A CSV file with all available commands that is not used anywhere but comes in handy to have a clean overview of available commands
81
-
82
-
<br>
83
-
84
-
### Link mapping
85
-
86
-
A key part of the translation from **GitHub** markdown to **Just the Docs** and **PyPI** markdown files, is to update internal links.
87
-
88
-
-**GitHub:** Links and relative and point to other README files.
89
-
-**[Documentation](https://acceleratedscience.github.io/openad-docs):** Links and relative and point to the other pages on the site.
90
-
-**[PyPI](https://pypi.org/project/openad/):** Links are absolute and point to the documentation website.
- The `/source` folder is the "single source of truth" and contains a number of text files with descriptions for OpenAD and some of its core concepts, as well as the list of model services.
52
+
- The `/_templates` folder contains the markdown templates that are used to generate some of the markdown pages for the [openad-docs] repository.
53
+
- The `/output` folder is where all files are stored before they're distributed to their final destination
0 commit comments