pulp / pulp-docs

Python Package to help aggregating Pulp's multirepo ecosystem into a unified doc.
https://pedro-psb.github.io/pulp-docs/
2 stars 4 forks source link

Add hot reload to pulp-docs serve #9

Closed pedro-psb closed 4 months ago

pedro-psb commented 7 months ago

Because of the process of aggregation, mkdocs native hot-reload can't track the right files It would be nice to have a workaround for this.

Three possible approaches are:

  1. Dynamically re-configure mkdocs hot-reload (preferred)
  2. Add -w option to pulp-docs to be passed to mkdocs (so watched files may be added manually)
  3. Add an independent watching layer
mdellweg commented 5 months ago

If i can choose, I want 1 and 2. (I believe they are not a contradiction and follow the watch behaviour of mkdocs.)