IMPORTANT NOTICE: Devheroes public code hosting will shut down at 1st of March 2023. Due to some difficulties, we have to shut down the instance. Since codeberg.org is pretty mature and welcoming, We highly recommend you to move your code there. Please be advised that on 1st of March, your data will be removed. Thanks for your time with us, and may the source be with you.

Browse Source

Extract the base url into two vars

ep8
Sameer Rahmani 7 months ago
parent
commit
c47738ce86
  1. 5
      core/fg42/build/core.el
  2. 2
      core/fg42/build/docs.el

5
core/fg42/build/core.el

@ -44,6 +44,11 @@ @@ -44,6 +44,11 @@
"Where to find the docs. It sould be relative to the
project root.")
(defvar fg42/build-dev-base-url "http://localhost:3003"
"The base url to use with the docs for dev.")
(defvar fg42/build-prod-base-url "https://fg42.org"
"The base url to use with the docs for production.")
(defvar fg42/build-docs-actions nil
"Set of actions to run before building the

2
core/fg42/build/docs.el

@ -272,7 +272,7 @@ Not pages." @@ -272,7 +272,7 @@ Not pages."
(defun fg42/build-docs (build-dir)
"Build the documents and the website in the given BUILD-DIR."
(let ((base-url (if (prod-p) "https://fg42.org" "http://localhost:3003"))
(let ((base-url (if (prod-p) fg42/build-prod-base-url fg42/build-dev-base-url))
(stage1-dir (expand-file-name "site" build-dir))
(final-dir (expand-file-name "site-build" build-dir)))

Loading…
Cancel
Save