diff --git a/README.org b/README.org index 710b178..71e1c68 100644 --- a/README.org +++ b/README.org @@ -64,23 +64,28 @@ We're not happy with Microsoft buying Github and we don't trust a company like M their strategies (For more information take a look at [[https://en.wikipedia.org/wiki/Halloween_documents][Halloween documents]]. So we decided to move to Devheroes as an alternative and we are happy here so far. -* License +* Contribute +FG42 made possible by the effort of the community of [[docs/site/pages/contributors.org][Contributors]]. - FG42 is free software; you can redistribute it and/or modify +If you're interested in *FG42* and wants to contribute to the project please follow +the [[docs/site/pages/how-to-contribute.org][How to Contribute Guitd]]. Also please read our [[docs/site/pages/code-of-conduct.org][Code of Conduct]] as well. + +* License +FG42 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. - FG42 is distributed in the hope that it will be useful, +FG42 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along +You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - All the documents of FG42 that locate in 'doc' directories release +All the documents of FG42 that locate in 'doc' directories release under the term of GNU FDL. -Copyright (C) 2010-2021 Sameer Rahmani +Copyright (C) 2010-2022 Sameer Rahmani diff --git a/core/fg42/build/core.el b/core/fg42/build/core.el index a1e2e7b..a1e5022 100644 --- a/core/fg42/build/core.el +++ b/core/fg42/build/core.el @@ -32,7 +32,6 @@ (defvar project-root nil "Root directory of the website source code.") - (defvar debug-mode nil) diff --git a/core/fg42/build/docs.el b/core/fg42/build/docs.el index 1b6f1c1..56036ad 100644 --- a/core/fg42/build/docs.el +++ b/core/fg42/build/docs.el @@ -56,7 +56,8 @@ (defun fg42/build-docs-copy-base (build-dir) "Copy the base structure of the website to the BUILD-DIR." - (copy-directory (from-root "/docs/site/pages") build-dir nil t)) + (copy-directory (from-root "/docs/site/pages") + (expand-file-name "site/pages" build-dir) nil t)) (defun fg42/build-prepare-docs (build-dir host) diff --git a/core/fg42/build/ox-template.el b/core/fg42/build/ox-template.el index 0a323eb..03171ac 100644 --- a/core/fg42/build/ox-template.el +++ b/core/fg42/build/ox-template.el @@ -121,6 +121,7 @@ call `org-html-render-tag-template' otherwise will call ORIG-FN." ("base-url" (plist-get info :base-url)) ("preamble" (org-html--build-pre/postamble 'preamble info)) ("title" (get-file-global-props (plist-get info :input-file) "TITLE")) + ("version" (fg42/version)) ("description" (or (get-file-global-props (plist-get info :input-file) "DESC") "")) ("postamble" (org-html--build-pre/postamble 'postamble info))))) diff --git a/core/fg42/build/utils.el b/core/fg42/build/utils.el index 16627e9..da510c8 100644 --- a/core/fg42/build/utils.el +++ b/core/fg42/build/utils.el @@ -27,6 +27,7 @@ ;;; Code: (require 'org-element) +(require 'fg42/build/core) (defmacro comment (&rest _) @@ -73,5 +74,16 @@ (mapcar #'car (org-get-buffer-tags)))) +(defun fg42/git-branch () + (cd project-root) + (shell-command-to-string "git branch --show-current")) + + +(defun fg42/version () + "Returns the current version of FG42." + (cd project-root) + (shell-command-to-string (format "git describe %s" (fg42/git-branch)))) + + (provide 'fg42/build/utils) ;;; utils.el ends here diff --git a/docs/site/templates/blog.html b/docs/site/templates/blog.html index b5391dd..2c50be0 100644 --- a/docs/site/templates/blog.html +++ b/docs/site/templates/blog.html @@ -11,15 +11,15 @@ {{{head}}} - - - + + +

@@ -33,7 +33,8 @@ diff --git a/docs/site/templates/index.org b/docs/site/templates/index.org index d353b15..92fdce9 100644 --- a/docs/site/templates/index.org +++ b/docs/site/templates/index.org @@ -1,4 +1,3 @@ - #+SETUPFILE: ../config.org #+OPTIONS: toc:nil #+EXPORT_FILE_NAME: index.html @@ -9,7 +8,14 @@ #+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]]. + +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. + * Recent updates: <<<:links>>> + #+INCLUDE: "../../README.org::*License"