Personal website
This website is static HTML, CSS and JavaScript. It has no build step and no framework. GitHub Pages serves the files from the main branch.
- Address
- mariyaholic.github.io
- Source
- mariyaholic/mariyaholic.github.io
- Version
- No version number. Each merge to
mainis a release.
Preview the site
Requirements: Python 3 and a modern browser.
- Clone the source:
git clone https://github.com/mariyaholic/mariyaholic.github.io.git cd mariyaholic.github.io - Start a local server from the root of the repository:
python3 -m http.server 8080 - Open
http://127.0.0.1:8080/in a browser. - Examine the pages that you changed and their links.
- To stop the server, push Ctrl+C.
Use the local server. Do not open the files directly from the disk. Some browsers block parts of a page that opens with a file:// address.
Change the site
Do not push to main. All changes go through a branch and a pull request. The owner merges the pull request.
- Make a branch from
main, for examplesite/fix-arcade-links. - Edit the HTML, CSS or JavaScript files.
- Preview the change. Use the procedure in Preview the site.
- Commit the change and push the branch.
- Open a pull request to
main.
After the merge, GitHub Pages publishes the site again in one or two minutes.
File layout
| Path | Contents |
|---|---|
*.html (root) | One file for each page. 404.html uses root paths, for example /css/site.css. |
css/site.css | The main look, revision 8, named mariyaholic-98: a PC-98 desktop in 16 colours. |
css/plain.css | The gray document look for documentation and papers. |
js/site.js | The desktop, boot screen, windows, sound and music for the main look. |
docs/ | Project documentation. docs/WRITING.md gives the writing rules. |
papers/ | Academic papers. One folder for each paper. |
fonts/ | Subset web fonts with their OFL licence texts. See fonts/SOURCES.md. |
img/98/ | Pictures Bayer-dithered to the site palette. The originals are in img/. |
.nojekyll | Tells GitHub Pages to serve the files without changes. |
Two looks
The site uses two stylesheets. Use one stylesheet on each page. Do not use the two together.
- Main look (
site.cssandsite.js): portfolio, programs, games and personal pages. Each top-level<section>in<main>is a window. Give itclass="win"anddata-win="FOLDER\NAME.TXT".site.jsdraws the desktop: a palette-cycling dither with drifting stars. It plays the boot screen on a first visit. It drags the home-page windows. It runs the app sketches and the step sequences. - Document look (
plain.cssonly): documentation and papers. It uses system fonts and no JavaScript. Documentation pages use the dark theme (theme-docs). Paper pages use the light, wiki-like theme (theme-paper).
The SOUND button in the status bar gives synthesized FM sound effects for windows, links, hovers on the main controls, the boot and the 404. The MUSIC button beside it plays DESKTOP.MID, a chip-style loop in js/site.js, through a small four-voice player. Both buttons are off by default, and the site remembers the choice. There are no audio files. The music starts again on the next page at the same beat.
Address options for the main look
| Option | Result |
|---|---|
?motion=off | Stops the desktop animation and the boot screen. |
| Reduced motion in the browser settings | The desktop is still and there is no boot. This is the same as ?motion=off. |
?boot | Shows the boot screen again. |
index.html#w-vivy | Opens the home page with that window at the front. |
Rules and limits
- Keep the
noindexmetadata on each page. Paper pages are the exception: search engines can index them, andsitemap.xmllists them. - Keep the accessibility and reduced-motion behaviour.
- Do not add external requests. The YouTube player in the FLUORITE.EYE window on the home page and the paper click counter (
tools/click-counter/) are the only exceptions. - Sound and music are off by default. A browser starts audio only after a click or a key push.