sphinx-doc/sphinx

Theme developers should be able to configure sphinx to trigger rebuilds based on theme changes

Open

#2.835 aberto em 8 de ago. de 2016

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (1.985 forks)batch import
builder:htmlgood first issuehelp wantedhtml theme

Métricas do repositório

Stars
 (5.625 stars)
Métricas de merge de PR
 (Mesclagem média 10d 11h) (11 fundiu PRs em 30d)

Description

If I am editing a theme, Sphinx does not trigger rebuilds based on theme changes; I have to do make clean and make html again, which can take quite a bit of time for a large document tree.

It would be helpful if, while editing theme elements, if I could configure Sphinx in a mode where it would "do the right thing":

  • if just .css and static elements have changed, then just copy these files to the build output
  • if theme templates have changed, then all the output files need to be re-rendered

see http://stackoverflow.com/questions/38794431/how-to-use-sphinx-build-when-developing-a-theme-sphinx-doesnt-seem-to-recogni

Guia do colaborador