refactor(docs): move doom-docs-dir to lib/docs.el

This is not an essential core variable, so it should be defined where it
used, instead.
This commit is contained in:
Henrik Lissner 2022-08-14 16:08:17 +02:00
parent b943e4d73a
commit 401a5aa530
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 4 additions and 3 deletions

View file

@ -144,9 +144,6 @@
(defconst doom-modules-dir (expand-file-name "modules/" doom-emacs-dir) (defconst doom-modules-dir (expand-file-name "modules/" doom-emacs-dir)
"The root directory for Doom's modules. Must end with a slash.") "The root directory for Doom's modules. Must end with a slash.")
(defconst doom-docs-dir (concat doom-emacs-dir "docs/")
"Where Doom's documentation files are stored. Must end with a slash.")
(defconst doom-user-dir (defconst doom-user-dir
(if-let (doomdir (getenv-internal "DOOMDIR")) (if-let (doomdir (getenv-internal "DOOMDIR"))
(expand-file-name (file-name-as-directory doomdir)) (expand-file-name (file-name-as-directory doomdir))

View file

@ -12,6 +12,10 @@
;; ;;
;;; Code: ;;; Code:
;;;###autoload
(defvar doom-docs-dir (concat doom-emacs-dir "docs/")
"Where Doom's documentation files are stored. Must end with a slash.")
;; DEPRECATED Will be renamed once docs "framework" is generalized ;; DEPRECATED Will be renamed once docs "framework" is generalized
(defvar doom-docs-header-alist (defvar doom-docs-header-alist
`(("/docs/index\\.org$" `(("/docs/index\\.org$"