A small service to preview an XHTML file in the fsfe.org design
Go to file
Luca Bonissi f378884cd1 Merge pull request 'Fixed incorrect sidebar handling and added module handling' (#63) from fix_sidebar_and_module into master
Reviewed-on: fsfe-system-hackers/webpreview#63
2021-01-24 13:39:02 +00:00
LICENSES initial commit 2020-05-11 17:37:18 +02:00
.drone.yml initial commit 2020-05-11 17:37:18 +02:00
Dockerfile Update Dockerfile to copy home.pm 2020-10-27 10:49:55 +01:00
README.md Added VERSION metadata to have a feedback when the version in installed by Docker 2020-09-27 20:39:18 +02:00
custom.conf initial commit 2020-05-11 17:37:18 +02:00
custom.css Fixed reuse on custom.css 2020-09-16 14:33:29 +02:00
disclaimer.html Added disclaimer - fixed removed closing tag from browser 2020-10-01 21:57:26 +02:00
docker-compose.yml Put online webpreview 2020-09-29 00:10:36 +02:00
entrypoint.sh Retry with CMD... 2020-09-29 00:24:23 +02:00
fsfe.pl Fixed incorrect sidebar handling and added module handling 2021-01-24 14:37:15 +01:00
home.pm Added homepage configuration - Fixed quot on img alt 2020-10-27 10:37:47 +01:00
index.html Added filename information when 'regenerating' the page 2020-12-14 10:53:33 +01:00
robots.txt Fixed expanded open/close tag by the browser 2020-09-30 23:09:49 +02:00
send.js Fixed missing meta fields on XML request 2020-10-27 17:49:25 +01:00

README.md

XHTML file preview

This is a service initiated by the FSFE's translator Luca Bonissi to preview XHTML files. These files are the foundation for pages on fsfe.org.

Because the markup is often hard to imagine from the raw file, this service offers a preview and a WYSIWYG editor. It uses the FSFE's design and tried to emulate how the file will look like in the end.

It also checks for XML syntax errors. If they exist, they will be displayed in red colour on the previewed page.

Limitations

Certain page-specific layout and XSL rules cannot be emulated. However, for a rough preview it suffices.

Local tests

The services is deployed via Docker, so you can run:

docker-compose up -d --build

Then, identify the IP of your container and open it.

License

This code is REUSE compliant, so all copyright and licensing information is stored within the files themselves, or can be extracted with the REUSE helper tool.