elvish/pkg/elvdoc
Qi Xiao e74cda7bc3 website/cmd/md2html: Reduce dependency on Elvish packages.
This command used to depend on pkg/mods/doc to access the embedded .elv, which
in turn depends on all the packages that implement builtin modules. The latter
set of packages depends on almost all the Elvish packages transitively. As a
result, almost any change in any Elvish package will trigger a rebuild of this
command and the whole website.

This commit minimizes the dependency on Elvish packages by having it read the
.elv files during runtime instead (enabled by
9112eb1ab2).

Additionally:

- Move HighlightCodeBlock, needed by website/cmd/md2html, from pkg/mods/doc
  to pkg/elvdoc. Moving it is necessary to completely remove the dependency of
  website/cmd/md2html on pkg/mods/doc.

- Remove the dependency of pkg/edit/highlight on pkg/eval. It only uses
  eval.UnpackCompilationErrors; move this work to the supplied Check function.
  This removes the transitive dependency of website/cmd/md2html on pkg/eval.

- Augment website/tools/md-deps to recognize @module lines and add dependency on
  the corresponding .elv files.
2024-01-09 13:36:57 +00:00
..
elvdoc_test.go pkg/elvdoc: Fix the handling of options with spaces in the value. 2023-01-02 03:00:24 +00:00
elvdoc.go website/cmd/md2html: Fix [foo]() (unqualified) outside builtin.html. 2024-01-08 22:45:28 +00:00
highlight_test.go website/cmd/md2html: Reduce dependency on Elvish packages. 2024-01-09 13:36:57 +00:00
highlight.go website/cmd/md2html: Reduce dependency on Elvish packages. 2024-01-09 13:36:57 +00:00