From da292334cc5e89d020b8b4d6ed3776f0bdf0f44a Mon Sep 17 00:00:00 2001 From: kylemarkleyepa <158192237+kylemarkleyepa@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:42:05 -0400 Subject: [PATCH] Adding page-level table of contents and fix the edit url path (#1629) --- docs/book.toml | 4 +- docs/theme/index.hbs | 351 +++++++++++++++++++++++++++++++++++++++++ docs/theme/pagetoc.css | 101 ++++++++++++ docs/theme/pagetoc.js | 114 +++++++++++++ 4 files changed, 569 insertions(+), 1 deletion(-) create mode 100644 docs/theme/index.hbs create mode 100644 docs/theme/pagetoc.css create mode 100644 docs/theme/pagetoc.js diff --git a/docs/book.toml b/docs/book.toml index 47af59b6..b36ac464 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -8,7 +8,9 @@ description = "Documentation for developer looking to use the RCRAInfo/e-Manifes [output.html] git-repository-url = "https://github.com/USEPA/e-manifest" -edit-url-template = "https://github.com/USEPA/e-manifest/edit/master/docs/emanifest_book/{path}" +edit-url-template = "https://github.com/USEPA/e-manifest/edit/master/docs/{path}" +additional-css = ["theme/pagetoc.css"] +additional-js = ["theme/pagetoc.js"] [output.html.fold] enable = true diff --git a/docs/theme/index.hbs b/docs/theme/index.hbs new file mode 100644 index 00000000..10e08b4e --- /dev/null +++ b/docs/theme/index.hbs @@ -0,0 +1,351 @@ + + +
+ + +