Go to file
Hans Fast da749db12a README: quickstart section 2026-03-25 10:19:40 +01:00
css css,ori-templates: margin-inline on body > * instead of body to allow figures to grow 2026-03-25 10:13:15 +01:00
filenamedata spring cleaning 2026-03-25 08:36:44 +01:00
html-manipulations spring cleaning 2026-03-25 08:36:44 +01:00
images images: test images 2026-03-19 11:12:13 +01:00
linked-files spring cleaning 2026-03-25 08:36:44 +01:00
ori-templates css,ori-templates: margin-inline on body > * instead of body to allow figures to grow 2026-03-25 10:13:15 +01:00
translations renames 2026-03-25 09:23:03 +01:00
.gitignore .gitignore: ignore build* dirs 2026-03-22 14:23:01 +01:00
README.md README: quickstart section 2026-03-25 10:19:40 +01:00
_index.md site.ori and others: restore, use parsed filename 2026-03-09 13:46:59 +01:00
a_pubfile.md everything: save state bc need to start again 2026-03-09 09:10:37 +01:00
package-lock.json pipeline/pagesInFolders: scaffolding for hast visit TBD 2026-03-22 16:18:20 +01:00
package.json pipeline/pagesInFolders: scaffolding for hast visit TBD 2026-03-22 16:18:20 +01:00
pipeline.ori renames 2026-03-25 09:23:03 +01:00
project-structure.svg README: quickstart section 2026-03-25 10:19:40 +01:00
site.ori pipeline: get linked files. Working around origami 0.6.14. 2026-03-19 11:10:54 +01:00

README.md

title cuid trls lang
Website Publication Files 26e4-a0
nl
en

How I create web pages from selected files from this repository, with private and public editions.

Quickstart

Prerequisites: node; git; clone this repository with git clone https://git.surfacemarkup.net/hans/ad_pubfiles.

  1. In this repository, npm install dependencies, including Web Origami. The following instructions assume you also have installed the ori command with npm install -g @weborigami/origami. If not, replace ori in commands below with npx @weborigami/origami.

  2. link or copy README.md to the parent directory of this repository, with the name ad_pubfiles_pub.ori.md. Now you have input for testing and development, since the ori template files look in the parent directory for files with this pattern. Optionally add more files with the pattern: [a-p]+_title[_pub-other-tags][.ori].md. That is:

  • they MUST start with a sequence of characters a-p,
  • followed by an underscore,
  • followed by a title which does not contain an underscore,
  • followed optionally by an underscore and one or more tags separated by hyphens. For testing purposes, only the pub tag is relevant.
  • followed by the filetype extension .md. If you want to use Origami expressions in the file, use .ori.md.

The reason for this setup step is that on my machine, the parent directory contains my personal wiki. So I can't share the input with you directly. The filename pattern above is used for the process of selecting which files to include in the build. The figure below shows this arrangement.

  1. Use the following commands to achieve the desired output.
  • in private mode: ori "serve watch ., =debug ./site.ori('all')"
  • in public mode: ori "serve watch ., =debug ./site.ori()"

site.ori only exposes the final rendering step from pipeline.ori. Therefore:

  • To serve the pipeline with all the processing steps available for inspection, replace site.ori with pipeline.ori in the commands above.
a diagram showing a directory called src containing markdown files. The src directory also contains a subdirectory called ad_pubfiles_pub.d. Arrows show that the file README.md inside this subdirectory is hardlinked to a file in the parent src directory, and that the file pipeline.ori in the subdirectory reads markdown files from the parent src directory, and that the subdirectory is a git repository which is synchronized with a remote public repository.
How the site generator files relate to the content

Markup Language

I have developed a text markup format which suits my needs better than Markdown. The parser works and I can render HTML with it, but the feature set is still very limited. For example, I can only render single works in italic. That might seem like an odd sort of limitation, but it's because I've started from somewhat different first principles than the assumptions the HTML/Markdown worfklow is based on. As we all know, the last 10% takes the most work. So to start with, I'm formatting the source files in Markdown.

Markup-taal

Ik heb een formaat ontwikkeld voor tekst die beter bij mijn doelen past dan Markdown.

link to image

Internal links need to be absolute from the root of the directory. This SHOULD be fixed in a future version.

Web Origami, Public and Private Site Versions

I want to make only select files public. Files whose name contains the tag pub should be included in the public build. The public build should be the default. To include all files, pass 'all' to the site.ori file. That sort of reduces the risk of accidentally publishing private files.

—private-below—

EXCEPT NOT REALLY! In this case, because this file is hardlinked to README.md inside a publicised git repository. You have been warned!

Organisation

${ada_pubfiles-worklog.md/}