2023-03-04 01:25:16 +08:00
# ~ajhalili2006's website
2022-10-22 01:34:59 +08:00
2024-10-12 19:41:13 +00:00
[](https://pages.dev)
[](https://gitpod.io/#https://mau .dev/andreijiroh-dev/website)
[](https://codespaces.new/andreijiroh-dev/website)
[](https://mau.dev/andreijiroh.dev/website/commits)
2023-09-24 16:31:16 +00:00
[](https://readthedocs.org/projects/ajhalili2006/)
2024-07-27 04:51:03 +08:00
[](https://github.com/andreijiroh-dev/docker-images/actions/workflows/docker-buildops.yml)
2024-10-12 19:41:13 +00:00
[](https://mau.dev/andreijiroh-dev/website/-/pipelines)
2023-03-04 01:25:16 +08:00
2024-10-12 19:41:13 +00:00
This is my sources for both [`andreijiroh.dev` ](https://andreijiroh.dev ) and tilde userpages,
2023-10-10 15:18:50 +00:00
built with Mkdocs + [Material theme ](https://go.andreijiroh.eu.org/mkdocs-material ) by
[~squidfunk ](https://github.com/squidfunk ). Sources for Gemini version of the website is
available at `gmi` directory.
## Information for people wishing to use this repository
While this is fairly just static site (with CI configs and even Cloudflare Pages references)
and not licensed under the Zlib license ([context from Xe/site repo][zlib-chaos]), please don't
just fork this repo unless you know what you're REALLY doing.
[zlib-chaos]: https://github.com/Xe/site/blob/HEAD/README.md#information -for-people-wishing-to-use-this-code
If you're pretty serious, please keep several things in mind:
2025-02-01 02:55:36 +08:00
- You must heavily edit the Markdown content of the website. Make your own personal user manual
and portfolio, or heck even go nuts on the homepage.[^1]
2023-10-10 15:18:50 +00:00
- Blog posts I written in Gemini version are licensed under CC-BY-SA-4.0,
[as mentioned below ](#legalese ) unless specified otherwise.
But [for the love of god], please use your own blog posts when writing for
Gemini users instead.
- For the favicon, use your own profile picture or pick/make another one.
[for the love of god]: https://english.stackexchange.com/questions/351296/what-exactly-does-for-the-love-of-god-mean#351326
[^1]: Please keep it SFW, since you don't want to get that censored by the MTRCB, right?
**Looking for a template instead with same Mkdocs theme?** No problem! [I contributed one at lorebooks.wiki's GitHub org ](https://github.com/lorebooks-wiki/mkdocs-material-template )
with some fine defaults, alongside a blog section if you prefer.
2022-12-26 17:28:16 +00:00
2023-07-15 16:56:29 +00:00
## Mirrors
2025-02-15 03:10:59 +08:00
Canonically developed at [GitLab SaaS ](https://gitlab.com/andreijiroh-dev/website ) (formerly on
[mau.dev ](https://mau.dev/andreijiroh-dev/website.git )) where the deployments happen, with the
following mirrors being maintained:
2023-07-15 16:56:29 +00:00
2025-02-15 03:10:59 +08:00
- GitHub: < https: // github . com / andreijiroh-dev / website > , where Docker image builds happen
- Sourcehut: < https: // git . sr . ht /~ ajhalili2006 / web >
2023-07-15 16:56:29 +00:00
2024-10-12 19:41:13 +00:00
## Structure
2025-02-15 03:10:59 +08:00
- [`markdown` ](./markdown/ ) - the source Markdown files for the website
- [`overrides` ](./overrides ) - theme customizations and Mkdocs build hooks in Python
2024-10-12 19:41:13 +00:00
2023-09-30 01:24:31 +08:00
## Site Development
2022-12-26 17:28:16 +00:00
2023-09-30 01:24:31 +08:00
Use the clone links from either the canonical repository URL or its mirrors
[as mentioned above ](#mirrors ) or open this repo in a cloud development
2024-10-12 19:41:13 +00:00
environment using the `open in` links above.
2023-03-04 01:25:16 +08:00
2023-09-30 01:24:31 +08:00
### Building from source
2023-03-04 01:25:16 +08:00
2023-09-30 01:24:31 +08:00
```bash
# install deps via pipenv...
pipenv install
2023-10-10 15:18:50 +00:00
# ...or via pip3 with --user -flag (generated from "pipenv requirements" and sending its output
2023-09-30 01:24:31 +08:00
# to requirements.txt)
pip install -r requirements.txt --user
2023-03-04 01:25:16 +08:00
# preview site and edit in another session
2025-02-15 03:10:59 +08:00
# if you have pipenv installed, just prefix them with pipenv run
2023-09-30 01:24:31 +08:00
mkdocs serve --watch overrides --watch-theme --livereload
```
### Sending patches
2023-03-04 01:25:16 +08:00
2025-02-15 03:10:59 +08:00
The gist via the CLI:
2023-03-04 01:25:16 +08:00
2023-09-30 01:24:31 +08:00
```bash
2023-05-05 09:24:28 +00:00
# send patches via GitLab or GitHub through the CLI
2025-02-15 03:10:59 +08:00
glab auth login # authenticate CLI against GitLab CI
2023-09-30 01:24:31 +08:00
gh auth login # authenticate CLI, GitHub.com edition
2025-02-15 03:10:59 +08:00
glab -R andreijiroh.dev/website mr create --allow-collaboration -b main
gh -R andreijiroh-dev/website pr create # might automatically closes PR due to mirror status
2023-03-04 01:25:16 +08:00
# or via my public inbox on sourcehut
# see https://git-send-email.io for setup and guide
2023-07-15 16:56:29 +00:00
git config sendemail.to "~ajhalili2006/public-inbox@lists .sr.ht" # NOT my personal email
2023-09-30 01:24:31 +08:00
git config format.subjectPrefix "PATCH web" # identification in archives + builds.sr.ht
2023-03-04 01:25:16 +08:00
git config --global sendemail.annotate yes
2023-05-05 09:24:28 +00:00
git config --global format.signOff true # needed for compliance with Linux DCO
2023-03-04 01:25:16 +08:00
git send-email HEAD^
```
2022-10-22 01:34:59 +08:00
## Contributing
Patches are always welcome, although you must sign-off your commits to comply with the Linux DCO.
2022-12-26 17:28:16 +00:00
Please be reminded that while this is a personal open-source project, please expect long waiting
times during pathc reviews and don't be disappointed when I disagree on stuff and chose not to merge
the patches for any reasons, including mental health breaks.
2023-05-05 09:24:28 +00:00
2023-10-09 08:40:24 +00:00
## Legalese
2023-05-05 09:24:28 +00:00
2025-02-15 03:10:59 +08:00
Unless otherwise noted, source code is licensed under the MPL-2.0 while website content
(text and ooriginal graphics) is under CC BY-SA 4.0.
2023-05-05 09:24:28 +00:00
2025-02-15 03:10:59 +08:00
For my profile picture (which used as a favicon anyways), while it is technically under CC BY-SA 4.0
([see Wikimedia Commons for context][commonspage]), please note that [I still retain personality rights][wikic-pr]
there.
2023-10-09 08:40:24 +00:00
### Third-party code
2025-02-15 03:10:59 +08:00
- [OpenWeb Icons Set ](https://iconduck.com/sets/openweb-icons-set ) ([source code ](https://github.com/pfefferle/openwebicons?ref=iconduck.com ))- [SIL Open Font License 1.1 ](https://github.com/pfefferle/openwebicons/blob/main/License.txt )
- Upstream template code from Material for Mkdocs for overrides directory - MIT
[commonspage]: https://commons.wikimedia.org/wiki/File:Andrei_Jiroh_Halili_from_March_2023.png#Licensing
[wikic-pr]: https://commons.wikimedia.org/wiki/Special:MyLanguage/Commons:Photographs_of_identifiable_people