Contents
To start working on website and docs, first prepare your development environment:
-
Make sure you have Python 3.7 and
poetry
installed.$ pip install poetry $ poetry --version Poetry version 1.0.2
-
Initialize a new virtual environment with
poetry
:$ poetry install $ poetry shell $ sphinx-build --version sphinx-build 2.3.1
-
If you want to publish website to GitHub pages, also initialize the node environment and connect the repository for website content:
$ npm install $ git remote add website [email protected]:imagineui/imagineui.github.io.git
Now your environment is ready.
Every time you open a new terminal session (window), activate the virtual environment:
$ poetry shell
$ which python
<shows path to your virtual environment>
This will run a local webserver which rebuilds on changes and reloads your browser tab
# English version
$ make serve
# translated Russian version
$ make serve-ru
Make sure you have gh-pages
installed.
$ make publish
./site/
- website./docs/
- Sphinx documentation
To update TOC, run
$ make toc