Skip to content

tradingstrategy-ai/furo

 
 

Repository files navigation

Fork of Furo Sphinx theme with different colours.

  • Added as a git submodule to docs
  • Added as an development Poetry dependency

Building theme

To rebuild CSS files:

npm install
npm run build

This will generatetheme/furo/static/styles/furo.css

Now update the CSS file in the main docs repository and place it to our Sphinx installation _static/styles folder:

cp deps/furo/src/furo/theme/furo/static/styles/furo.css source/_static/styles

Because of Sphinx template/static override resolution, your custom build furo.css will be picked over the default one.

Updating theme

Edit Furo SASS files directy to change colour variables.

Edit _colors.sass.

colors-dark depends on colors being included at a lower specificity.

Preview

Just rebuild theme and then rebuild docs with:

make clean html

Updating from upstream

git pull changes from Furo master.

Troubleshooting

Poetry does not recognise Furo filesystem checkout as a Python package and the following fails:

furo = {path = "deps/trade-executor", develop = true}

Thus, the CSS copy hack

Packages

No packages published

Languages

  • Sass 34.9%
  • HTML 21.7%
  • Python 18.8%
  • JavaScript 14.2%
  • SCSS 10.4%