This package is the next generation theme for the Read the Docs application UI.
This is the current UI and templates for the Read the Docs application.
It includes updated templates, new JavaScript sources, and UI based on FomanticUI (SemanticUI).
It is an addition to the readthedocsext package, and provides the theme Django application.
This package is automatically installed by default when building the application images.
You will want to check this repository out in the same path as your other repositories if you plan on doing development on the files in this repository:
% git clone --recurse-submodules git@github.com:readthedocs/ext-theme.gitJust start your local application environment like normal to begin using this package.
This will start the Webpack dev server container for hot/live reload of compiled assets. You do not need to rebuild the asset files until you open a pull request.
Our standard JS stack uses Jest for testing. Execute tests as normal:
% npm testWe run Prettier for most static files and djlint for Django templates. Linting and formatting is done using pre-commit:
% pre-commitLinting checks are performed at CI and will produce errors.
CI checks will also check to see that the built CSS and JavaScript assets are up to date. When you submit a pull request, you'll need to rebuild the asset files included in the repository here:
% npm run build- ext-theme documentation
- Some documentation of patterns, conventions, and API reference
- JavaScript reference
- API reference for JavaScript front end code
- Template API reference
- Template reference and documentation
- Learning JavaScript
- Some resources on learning modern JavaScript