Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 40 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,55 @@
name: Deploy
name: Documentation

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
build:
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
python-version: "3.13"
- name: Install Zensical
run: |
python -m pip install --upgrade pip
pip install zensical
- name: Build docs
run: zensical build --clean

deploy:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/configure-pages@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.12'
architecture: 'x64'
- name: Set up MkDocs
python-version: "3.13"
- name: Install Zensical
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/requirements.txt
pip install zensical
- name: Build docs
run: zensical build --clean
- uses: actions/upload-pages-artifact@v4
with:
path: site
- name: Deploy
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }}
run: mkdocs gh-deploy
id: deployment
uses: actions/deploy-pages@v4

7 changes: 0 additions & 7 deletions .github/workflows/requirements.txt

This file was deleted.

88 changes: 0 additions & 88 deletions mkdocs.yml

This file was deleted.

101 changes: 101 additions & 0 deletions zensical.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[project]
site_name = "私の愛した数式"
site_url = "https://sukeya.github.io/"
repo_url = "https://github.com/sukeya/sukeya.github.io"
edit_uri = "blob/main/docs/"
docs_dir = "docs"
extra_javascript = [
"javascripts/mathjax.js",
"https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js"
]
nav = [
{ "概要" = "index.md" },
{ "OSS" = [
{ "platanus" = "/platanus/" }
] },
{ "記事" = [
{ "Thrustの非同期実行" = "./articles/thrust-async.md" },
{ "Apple Magic Keyboardの設定" = "./articles/config-apple-magic-keyboard-in-ubuntu.md" },
{ "Alembicの使い方" = "./articles/how-to-use-alembic.md" },
{ "perf_event_paranoidを変更できない時の対処法" = "./articles/cannot-change-perf-event-paranoid.md" },
{ "gdbでのスタックトレースの自動取得" = "./articles/gdb-get-stacktrace.md" },
{ "Eigenで行優先の行列を行優先のベクトルに変換する時、ベクトルのイテレータを`std::contiguous_iterator`にする方法" = "./articles/make-reshaped-matrix-iterator-contiguous.md" },
{ "oneTBBの使い方" = "./articles/how_to_use_onetbb.md" },
{ "Ubuntu 25.04上のRadeonでRusticlを使う方法" = "./articles/how_to_use_rusticl_with_radeon_on_ubuntu.md" },
{ "AMD RDNA4のハードウェアの概要" = "./articles/overview_of_RDNA4_hardware.md" },
{ "AMD HIP" = "./articles/hip/intro/intro.md" },
{ "Address sanitizerとEigenを一緒に使うとき" = "./articles/eigen_with_asan.md" },
{ "Expression templatesのダングリング対策について" = "./articles/expression_templates.md" }
] },
{ "CUDAプログラミングガイド 日本語解説" = "/cuda_programming_guide_jp/" }
]

[project.theme]
favicon = "img/blog_logo.png"
features = [
"content.code.copy",
"content.action.edit",
"toc.integrate",
"navigation.top",
"navigation.indexes"
]

[project.theme.icon]
repo = "fontawesome/brands/github"

[[project.theme.palette]]
media = "(prefers-color-scheme)"
toggle.icon = "lucide/sun-moon"
toggle.name = "Switch to light mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: light)"
scheme = "default"
toggle.icon = "lucide/sun"
toggle.name = "Switch to dark mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: dark)"
scheme = "slate"
toggle.icon = "lucide/moon"
toggle.name = "Switch to system preference"

[project.markdown_extensions.admonition]

[project.markdown_extensions.attr_list]

[project.markdown_extensions.footnotes]

[project.markdown_extensions.md_in_html]

[project.markdown_extensions.pymdownx.blocks.caption]

[project.markdown_extensions.pymdownx.highlight]
anchor_linenums = true
line_spans = "__span"
pygments_lang_class = true

[project.markdown_extensions.pymdownx.details]

[project.markdown_extensions.pymdownx.inlinehilite]

[project.markdown_extensions.pymdownx.snippets]

[project.markdown_extensions.pymdownx.superfences]

[project.markdown_extensions.tables]

[project.markdown_extensions.toc]
permalink = true
slugify = {callable = "pymdownx.slugs.slugify", kwds = {case = "lower"}}

[project.markdown_extensions.pymdownx.arithmatex]
generic = true

[project.plugins.git-revision-date-localized]
enable_creation_date = true
type = "iso_date"

[project.plugins.glightbox]

[project.plugins.search]