~ajhalili2006's personal website, built with Zensical (successor of Material for Mkdocs) [old repo name got bugged while attempting to do manual knot migration via repo deletion] andreijiroh.dev
zensical mkdocs-material website

docs(global): update dev docs and add some badges

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>

Changed files
+34 -32
docker
+28 -24
README.md
···
Canonically developed at [mau.dev](https://mau.dev/andreijiroh.dev/website.git) where the deployments happen, with the following mirrors being maintained:
* GitHub: <https://github.com/ajhalili2006/ajhalili2006.github.io.git>, where Docker image builds happen
-
* Jetbrains Space (personal): <https://ajhalili2006.jetbrains.space/p/web/repositories/andreijiroh.dev/files/README.md>
-
* Sourcehut: <https://git.sr.ht/~ajhalili2006/tildeweb>
+
* Jetbrains Space (personal): <https://ajhalili2006.jetbrains.space/p/web/repositories/andreijiroh.dev> (repository clone URL: `git.jetbrains.space/ajhalili2006/web/andreijiroh.dev.git`)
+
* Sourcehut: <https://git.sr.ht/~ajhalili2006/web>
-
## Development
+
## Site Development
-
```bash
-
# clone the repo
-
# pick one on the clone URLs
-
glab repo clone https://mau.dev/ajhalili2006/tildeverse-web
-
gh repo clone ajhalili2006/ajhalili2006.github.com
-
git clone git@git.sr.ht:~ajhalili2006/tildeweb
+
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
+
environment using these links:
-
# maybe do this on a feature branch
-
git switch -c your-git-username/your-suggestion-here
+
[![Open in Gitpod](https://img.shields.io/badge/open%20in-Gitpod-orange?style=flat-square&logo=gitpod)](https://gitpod.io/#https://mau.dev/andreijiroh.dev/website)
+
[![Open in Codespaces](https://img.shields.io/badge/open%20in-Codespaces-black?style=flat-square&logo=github)](https://codespaces.dev/ajhalili2006/ajhalili2006.github.io)
-
# install deps via venv
-
python3 -m venv venv
-
source ./venv/bin/activate
-
pip3 install -r requirements.txt
+
### Building from source
+
+
```bash
+
# install deps via pipenv...
+
pipenv install
+
# ...or via pip3 with --user flag (generated from "pipenv requirements" and sending its output
+
# to requirements.txt)
+
pip install -r requirements.txt --user
# preview site and edit in another session
-
mkdocs serve
-
nano markdown/path-to-file.md
+
mkdocs serve --watch overrides --watch-theme --livereload
+
```
-
# done?
-
git stage . && git commit --signoff
+
### Sending patches
+
+
```bash
# send patches via GitLab or GitHub through the CLI
glab auth login --host "https://mau.dev" # authenticate CLI
-
glab -R https://mau.dev/ajhalili2006/tildeverse-web mr create --allow-collaboration -b main
+
gh auth login # authenticate CLI, GitHub.com edition
+
glab -R https://mau.dev/andreijiroh.dev/website mr create --allow-collaboration -b main
gh -R ajhalili2006/tildeverse-web pr create # might automatically closes PR due to mirror status
# or via my public inbox on sourcehut
# see https://git-send-email.io for setup and guide
git config sendemail.to "~ajhalili2006/public-inbox@lists.sr.ht" # NOT my personal email
-
git config format.subjectPrefix "PATCH tildeweb" # identification in archives + builds.sr.ht
+
git config format.subjectPrefix "PATCH web" # identification in archives + builds.sr.ht
git config --global sendemail.annotate yes
git config --global format.signOff true # needed for compliance with Linux DCO
git send-email HEAD^
···
## License
-
Unless otherwise noted, source code is licensed under the MPl-2.0 while website content (text-only)
-
is under CC BY-SA 4.0
+
Unless otherwise noted, source code is licensed under the MPL-2.0 while website content (text-only)
+
is under CC BY-SA 4.0.
-
The only thing that's not covered by this is [the favicon version](markdown/assets/images/favicon.png) of my profile picture.
+
The only thing that's not covered by this is [the favicon version](markdown/assets/images/favicon.png)
+
of my (current) profile picture.
+6 -8
docker/README.md
···
-
# CI image for GitLab CI deploys
+
# Custom `mkdocs-material` CI image
-
This directory contains the necessary files to build a container image for the website deployments.
-
-
## How to build
+
Builds on Alpine edge, mostly used by @ajhalili2006 to deploy
+
builds over GitLab Ci.
-
Just run the script to build locally
+
## Build from source
-
```bash
-
./docker/build.sh
-
```
+
After cloning [Andrei Jiroh's website sources](https://mau.dev/andreijiroh.dev/website), you can run the `build.sh` script
+
(see script source for available options)