bczsalba / Termage

Generate SVGs from any Python code, even in your documentation.
https://termage.bczsalba.com
MIT License
23 stars 0 forks source link

[BUG] mkdocs only sees generated files after the second generation #1

Open bczsalba opened 2 years ago

bczsalba commented 2 years ago

Describe the bug When generating from a clear tree (e.g. docs/assets is empty), the first run will have mkdocs complain about links to non-detected files:

Screenshot 2022-05-26 at 8 45 41

To Reproduce Steps to reproduce the behavior:

  1. Run rm -rf docs/assets/*
  2. Run mkdocs serve
  3. Look at the terminal output and see warnings

If the development server is killed and restarted, the problem goes away.

Expected behavior The files should be detected on first run.

Platform info Browser: All

PTG:

PyTermGUI version 6.2.1

System details:
    Python version: 3.9.12
    $TERM:          xterm-kitty
    $COLORTERM:     truecolor
    Color support:  ColorSystem.TRUE
    OS Platform:    macOS-12.3.1-arm64-arm-64bit
bczsalba commented 2 years ago

This could be fixed by adding File instances to the Files collection MkDocs generates, but documentation around it is sparse and I haven't figured out how to yet.