refactor(docs): replace nav menus with virtual one

Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
This commit is contained in:
Henrik Lissner 2022-04-02 02:02:17 +02:00
parent c34168fb2a
commit 1255315bfc
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
167 changed files with 143 additions and 338 deletions

View file

@ -14,12 +14,7 @@
(format "doom-module-issues::%s %s" category module)))))))
(defvar doom-cli-docs-common-menu
`(("↖ Github"
. ,(fn! (&key readme)
(if (file-exists-p! readme doom-modules-dir)
(format "doom-repo:tree/develop/modules/%s" (string-remove-prefix "./" (file-name-directory readme)))
(format "doom-repo:tree/develop/%s" (string-remove-prefix "./../" readme)))))
("± Suggest edits" . "doom-suggest-edit:")
`(("± Suggest edits" . "doom-suggest-edit:")
("? Help"
. ,(fn! (&key title)
(cond ((equal title "Changelog") "doom-help-changelog:")