executablebooks / sphinx-external-toc

A sphinx extension that allows the site-map to be defined in a single YAML file
https://sphinx-external-toc.readthedocs.io
MIT License
33 stars 18 forks source link

Change in `options:` key parameters does not clear cache for rebuilds #46

Closed AakashGfude closed 2 years ago

AakashGfude commented 3 years ago

When you add/edit/remove a key from the options object in _toc.yml, the cached objects are still used on subsequent rebuilds.

The cache should be cleared and a fresh build should happen.

AakashGfude commented 3 years ago

Update:

The build is refreshed when you add numbered: True. Ex:

- caption: Tutorials
  numbered: True
  chapters:
  - file: start/your-first-book
    sections:
    - file: start/overview
    - file: start/create
    - file: start/build
    - file: start/publish
  - file: tutorials/references
  - file: basics/questions

Screen Shot 2021-07-06 at 12 06 09 pm

but when you change it to numbered: False it does not refresh Ex:

- caption: Tutorials
  numbered: False
  chapters:
  - file: start/your-first-book
    sections:
    - file: start/overview
    - file: start/create
    - file: start/build
    - file: start/publish
  - file: tutorials/references
  - file: basics/questions

still gives: Screen Shot 2021-07-06 at 12 06 09 pm

chrisjsewell commented 3 years ago

hopefully closed in #51, but see my comment on #48

chrisjsewell commented 2 years ago

As mentioned, I think this is now fixed, but feel free to re-open if not