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

Add the :base-url to org rendering context

ep8
Sameer Rahmani 7 months ago
parent
commit
1cc1b49c00
  1. 2
      Makefile
  2. 5
      core/fg42/build/docs.el
  3. 4
      docs/site/templates/index.org

2
Makefile

@ -55,7 +55,7 @@ serve: build @@ -55,7 +55,7 @@ serve: build
.PHONY: deploy-docs
deploy-docs: docs
rsync -vlcr --delete-after ./build/* core.lxsameer.com:/home/www/public/fg42/
rsync -vlcr --delete-after ./build/site-build/* core.lxsameer.com:/home/www/public/fg42/
.PHONY: dummy-x
dummy-x:

5
core/fg42/build/docs.el

@ -311,9 +311,8 @@ Not pages." @@ -311,9 +311,8 @@ Not pages."
(message "Creating the main index file")
(copy-template (from-root "/docs/site/templates/index.org")
(expand-file-name "site/index.org" build-dir)
(list
(cons :links
(latest-org-list base-url))))
`((:links . ,(latest-org-list base-url))
(:base-url . ,base-url)))
(message "Creating categories")
(copy-template (from-root "/docs/site/templates/categories.org")

4
docs/site/templates/index.org

@ -9,10 +9,10 @@ @@ -9,10 +9,10 @@
#+INCLUDE: "../../README.org::*Future Gadgets 42" :only-contents t
* Contribute
FG42 made possible by the effort of the community of [[http:/pages/contributors.html][Contributors]].
FG42 made possible by the effort of the community of [[<<<:base-url>>>/pages/contributors.html][Contributors]].
If you're interested in *FG42* and wants to contribute to the project please follow
the [[http:/pages/how-to-contribute.html][How to Contribute Guitd]]. Also please read our [[http:/pages/code-of-conduct.html][Code of Conduct]] as well.
the [[<<<:base-url>>>/pages/how-to-contribute.html][How to Contribute Guitd]]. Also please read our [[<<<:base-url>>>/pages/code-of-conduct.html][Code of Conduct]] as well.
* Recent updates:
<<<:links>>>

Loading…
Cancel
Save