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
@@ -28,7 +29,7 @@ Included in `coderdata/docs/requirements.txt`. Extra installations that enable v
28
29
29
30
### Build
30
31
31
-
To build the Sphinx documentation locally, navigate to the `docs` directory and run the `sphinx-build` command. This command processes the content files from the `source` directory and generates the rendered HTML output in the `build` directory.
32
+
To build the Sphinx documentation locally, navigate to the `docs/` directory and run the `sphinx-build` command. This command processes the content files from the `docs/source/` directory and generates the rendered HTML output in the `docs/build/` directory.
Questions will follow this command and when it prompts if you'd like to separate the source and build directories select yes.
51
52
52
-
## Updating Documentation Site
53
+
## Updating the Documentation Site
53
54
54
-
The `conf.py` file is the central configuration file for Sphinx and it determines the behavior and appearance of the generated documentation. Specifically it configures extensions, defines metadata, controls output settings, and customizes sphinx behavior. The `index.rst` file is the starting page for the Sphinx documentation build process. It acts as the root file, linking all other pages and defining the document hierarchy. All other .md and .rst files are added and internally referenced within the index page or within the sidebar.
55
+
The `conf.py` file is the central configuration file for Sphinx and it determines the behavior and appearance of the generated documentation. Specifically it configures extensions, defines metadata, controls output settings, and customizes sphinx behavior. The `index.rst` file is the starting page for the Sphinx documentation build process. It acts as the root file, linking all other pages and defining the document hierarchy. All other .md and .rst files are added and internally referenced within the index page and/or within the sidebar.
55
56
56
57
### Pages
57
58
58
-
To update pages navigate to `docs/source`, all .rst and .md files live here. Here a reference of the main pages used for the documentation site.
59
+
To update pages navigate to `docs/source/`, all .rst and .md files live here. Here a reference of the main pages used for the documentation site.
|Tutorial | tutorials.rst | Deep Learning Tutorial |
68
+
|Contributing | contribution_guide.rst *includes contribution.md and add_code_guide.md*| Contribution Guide |
68
69
69
-
Note: When adding pages, reStructuredText files are the most sphinx friendly and allow for use of helpful sphinx features. However, Markdown files can be used and will render properly when the myst-parser extension is used.
70
+
**Note:** When adding pages, reStructuredText files are the most sphinx friendly and allow for use of helpful directives. However, Markdown files can be used and will render properly when the myst-parser extension is used.
70
71
71
72
### Images and Graphics
72
73
73
-
To add any new images they will live in `docs/source/_static`. The coderdata_header.png and home_page_graphic.png were made using [canva](https://www.canva.com/). The designs are shared with team members so that they can easily be edited if needed!
74
+
To add any new images they will live in `docs/source/_static/`. The coderdata_header.png was made using [canva](https://www.canva.com/) and coderdata_1 was made using biorender.
74
75
75
76
### Site Theme and Design
76
77
77
-
The original sphinx theme used is 'sphinxdoc', however, to change certain aspects an additional file custom.css was included to override the sphinxdoc theme. To update the custom theme navigate to `docs/source/_static/custom.css`. Changes to the sidebar can be made in `docs/source/_templates/my_custom_sidebar.html`. Any other custom templates will be added to `docs/source/_templates`.
78
+
The original sphinx theme used is 'sphinxdoc', however, to change certain aspects I created `custom.css`to override the sphinxdoc theme. To update the custom theme navigate to `docs/source/_static/custom.css`. Changes to the sidebar can be made in `docs/source/_templates/my_custom_sidebar.html`. Any other custom templates will be added to `docs/source/_templates/`.
78
79
79
-
Note: The sphinxdoc theme is automatically generated during the build command into `docs/build/html/_static/sphinxdoc.css`. It is regenerated everytime sphinx build runs so changes to the theme must be made in custom.css.
80
+
**Note:** The sphinxdoc theme is auto-generated during the build command into `docs/build/html/_static/sphinxdoc.css`. It is regenerated everytime sphinx build runs so changes must be made in custom.css.
- We added `sphinx.yml` to the `.github/workflows/` directory in the `documentation-staging` branch.
128
+
129
+
- Then in `documentation-staging` we included all the source directory files that are needed to build the documentation. (These are all the same files that are needed to build the documentation locally, the only addition is `requirements.txt`).
130
+
**Note:** If you have been building the documentation locally and then are moving to commit to the staging branch there is no need to include any files from `docs/build/` directory.
131
+
132
+
- Once a push is made from `documentation-staging` the workflow is triggered.
133
+
134
+
- The built html files are then deployed to the root of the `gh-pages` branch. The included files in the branch are shown in the graphic above.
0 commit comments