The goal here is to have a nice way to generate and maintain a static website based solely on standardized OpenDocument format (ODF), currently just the ODT file extension.
- No JS
- Helps you with your new website (portfolio, blog)
- Allows to create pages, blog posts using LibreOffice or Collabora Online
- Updates your index page
To do: Move my personal content (website) from this repository or at least move it within some sort of "example" folder To do: make possible to update homepage strings (contacts etc) without touching HTML
Credits: image used for project example
bella-generate-website.mp4
bella-generate-website-html.mp4
Why do this? Well just for fun :) and because I myself would like to have an alternative workflow where:
- There is no need to rely on over complicated web frameworks
- I can keep using my favourite office suite to write my stuff while taking advantage of
- Spellcheckers
- Thesaurus
- AutoCorrect
- Styles
- Automatically have your webpages ready for offline consumption
- public: generator folder to use in server
- content: All content in odt
- static: Images and CSS
- Create a new odt file inside of
content/projects
- Write description and add images
- Generate corresponding page
./generate.sh [odtfilenameWithoutextension]
- Update list of projects and correspondent homepage
./update-index.sh
- Create a new odt file inside of
content/[newpage.odt]
- Write description and add images
- Generate corresponding page
./generate-page.sh [newpage]
(without file extension) - Update homepage menu
./update-index.sh
Using python to get minimal results (without CSS) so we can have web content following website’s style-sheet and still be able to have document files with their own style.
- Clone this repository or use the scripts
- Install odf2xhtml (for example via pip using virtual environment)
Create folder mkdir venv
Create environment python3 -m venv ./venv
Activate it source ./venv/bin/activate
pip install odfpy