statiqdev / Statiq.Docs

A static documentation site generator.
https://statiq.dev/docs
Other
53 stars 8 forks source link

API changes don't cause a rebuild while using the --watch command #10

Open SilentSin opened 5 years ago

SilentSin commented 5 years ago

Changing an input file while using the --watch command causes it to automatically rebuild the site, but changing a source file in the referenced C# project does not. It would be nice if it did, but I'm not sure how straightforward it would be to get the paths of the source files from the project to watch them as well. It's easy enough to work around though.

Also, even when it does get rebuilt, auto links don't seem to account for changes to the API:

  1. Run Wyam with --watch and keep it running.
  2. Add a class called MyClass.
  3. Put a reference to MyClass in any of the input files where it would normally get auto-linked to that class in the API docs.
  4. Change something in an input file to cause a rebuild.
  5. That reference doesn't get auto-linked even though the new API page does exist.
  6. Close Wyam and restart it.
  7. Now it does get auto-linked properly.

Again, this is really minor and might not even be worth fixing because presumably it would mean spending more time rebuilding whatever cache the auto-linking system uses every time.