generator and source files for the compudanzas.net site
Go to file
Roberto MF 9f6e1cae28 Ortografía: «éste», «ésta», «éstos», «éstas»
Los adjetivos demostrativos «este/a/os/as» no llevan tilde.

Además, cuando se utiliza como pronombre demostrativo, se desaconseja el uso de la tilde en la última revisión de la Ortografía de las Academias de la Lengua Española, siguiendo el camino de simplificación de la ortografía de otras instituciones de la lengua.
2022-01-27 20:57:20 +01:00
etc cleaned up root dir 2022-01-07 20:38:44 -06:00
log gemsub feed link 2022-01-15 21:22:54 -06:00
src Ortografía: «éste», «ésta», «éstos», «éstas» 2022-01-27 20:57:20 +01:00
.gitignore add .gitignore to tracked files 2022-01-07 17:33:42 -06:00
README.md documentation many wikilinks per line 2022-01-21 18:45:52 -06:00
gemtext2html.awk minor style changes 2022-01-22 19:53:12 -06:00
generasitio.sh correcciones para compatibilidad 2022-01-08 19:43:02 -06:00
genindice.awk initial migration 2021-06-14 22:03:28 -05:00
genlog.awk correcciones para compatibilidad 2022-01-08 19:43:02 -06:00
gmo.nanorc gmo syntax highlight 2021-11-25 17:32:44 -06:00
gmo2gmi.awk modify footer 2022-01-21 19:22:31 -06:00
links.py file 'with ... as' 2022-01-21 19:51:30 -06:00

README.md

compudanzas

this repository contains the scripts and source files for the compudanzas site in gemini and the web

generate site

call the shell script:

./generasitio.sh

files

  • generasitio.sh: the shell script that copies files and call the other scripts with the corresponding arguments (like last modified date)
  • gemtext2html.awk: converts the files in .gmo format (modified .gmi) to an html version, according to the spec and my own taste
  • gmo2gmi.awk: converts the files in .gmo format to real .gmi
  • genindice.awk: generates the index of all pages
  • links.py: calculates the incoming links between pages and adds them to the files
  • genlog.awk: generates the log files (atom, twtxt, gemsub) from src/log.txt
  • gmo.nanorc: syntax highlighting for .gmo format in nano

.gmo format

the same format as gmi (gemtext), but with the following line types:

  • + add this line to the html file but not to the gmi file
  • & add this line to the gmi file but not to the html file

wikilinks

the generator can parse and convert inline {wikilinks}, as many as needed per line

  • in html, they get converted to an inline link
  • in gemtext, the links are added after the line with the text

.gmo text:

see the {roadmap} for updates that want to happen.

converted to html:

<p>
see the <a href='./roadmap.html'>roadmap</a> for updates that want to happen.
</p>

converted to gemtext:

see the roadmap for updates that want to happen.
=> ./roadmap.gmi roadmap

spaces inside the wikilinks are converted to underscores.

the generator can also parse normal links in gemtext, one per line

  • in html, it gets converted to an inline link
  • in gemtext, the link is left as is

.gmo text:

=> ./references.gmi {references}

converted to html:

<p><a href='./references.html'>references</a></p>

converted to gemtext:

=> ./references.gmi references

links.py takes both of those types of wikilinks in order to perform its calculation.

it looks at the contents between the curly brackets, converts them to a filename format (replacing spaces for underscores), and assummes that file actually exists.

license

peer production license