<commit_before>;; emacs --batch --load bin/publish.el --visit src/org/index.org --funcall org-publish-current-project

(require 'org-publish)

(let ((dir (if (buffer-file-name) (expand-file-name "../" (file-name-directory (buffer-file-name))) default-directory)))
  (setq org-publish-use-timestamps-flag nil
        org-publish-project-alist
        `(
          ("org"
           :base-directory ,(expand-file-name "src/org/" dir)
           :base-extension "org"
           :publishing-directory ,(expand-file-name "target/" dir)
           :recursive t
           :publishing-function org-publish-org-to-html
           :headline-levels 2 
           :author-info nil
           :email-info nil
           :creator-info nil
           :html-postamble nil
           :style "<link rel='stylesheet' type='text/css' href='css/stylesheet.css' />"
           )
          ("static"
           :base-directory ,(expand-file-name "src/org/" dir)
           :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
           :publishing-directory ,(expand-file-name "target/" dir)
           :recursive t
           :publishing-function org-publish-attachment
           )
          ("docs" :components ("org" "static"))
          )))
<commit_msg>Publish to a subdir of target.<commit_after>;; emacs --batch --load bin/publish.el --visit src/org/index.org --funcall org-publish-current-project

(require 'org-publish)

(let ((dir (if (buffer-file-name) (expand-file-name "../" (file-name-directory (buffer-file-name))) default-directory)))
  (setq org-publish-use-timestamps-flag nil
        org-publish-project-alist
        `(
          ("org"
           :base-directory ,(expand-file-name "src/org/" dir)
           :base-extension "org"
           :publishing-directory ,(expand-file-name "target/html/" dir)
           :recursive t
           :publishing-function org-publish-org-to-html
           :headline-levels 2 
           :author-info nil
           :email-info nil
           :creator-info nil
           :html-postamble nil
           :style "<link rel='stylesheet' type='text/css' href='css/stylesheet.css' />"
           )
          ("static"
           :base-directory ,(expand-file-name "src/org/" dir)
           :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
           :publishing-directory ,(expand-file-name "target/html/" dir)
           :recursive t
           :publishing-function org-publish-attachment
           )
          ("docs" :components ("org" "static"))
          )))

{'fraction_non_alphanumeric': 0.15897435897435896, 'fraction_numerical': 0.0015779092702169625, 'mean_word_length': 1.9454123112659698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4582826', 'n_tokens_mistral': 780, 'n_tokens_neox': 767, 'n_words': 149}