Debian Codegraph @

docs/community/structure.md

raw
1 # Structure of this theme
2
3 ## Location and structure of documentation
4
5 The documentation for this theme is in the `docs/` folder.
6 It is structured as a [Sphinx documentation site](https://www.sphinx-doc.org/).
7 The content is written in a combination of reStructuredText and MyST Markdown.
8
9 ## Location and structure of CSS/JS assets
10
11 The CSS and JS for this theme are built for the browser from `src/pydata_sphinx_theme/assets/*` with
12 [webpack](https://webpack.js.org/). The main entry points are:
13
14 - CSS: `src/pydata_sphinx_theme/assets/styles/pydata-sphinx-theme.scss`
15 - the main part of the theme assets
16 - customizes [Bootstrap](https://getbootstrap.com/) with [Sass](https://sass-lang.com)
17
18 - JS: `src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js`
19 - provides add-on Bootstrap features, as well as some custom navigation behavior
20
21 - webpack: `webpack.config.js`
22 - captures the techniques for transforming the JS and CSS source files in
23 `src/pydata_sphinx_theme/assets/*` into the production assets in `src/theme/pydata_sphinx_theme/static/`