Skip to content

Commit

Permalink
chore: Add CNAME, requirements.txt, extra.css, and index.md files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolxwz committed Jun 8, 2024
1 parent 4ed09a3 commit cb48ec1
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install -r requirements.txt
- run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rhce.ricolxwz.de
1 change: 1 addition & 0 deletions docs/assets/favicon-faded-8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/favicon-white-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Welcome to MkDocs

For full documentation visit [mkdocs.org](https://www.mkdocs.org).

## Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

## Project layout

mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
8 changes: 8 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.md-header__button.md-logo {
margin: 0;
padding: 0;
}
.md-header__button.md-logo img, .md-header__button.md-logo svg {
height: 2.5rem;
width: 2.5rem;
}
117 changes: 117 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
site_name: RHCE 笔记
site_author: ricolxwz
copyright: Copyright © 2024 ricolxwz
site_description: An RHCE study note
repo_url: https://github.com/ricolxwz/rhce
repo_name: ricolxwz/rhce
theme:
name: material
logo: assets/favicon-faded-8.svg
favicon: assets/favicon-white-background.svg
language: zh
features:
- content.code.annotate
- content.code.copy
- content.code.select
- content.tabs.link
- content.footnote.tooltips
# - header.autohide
# - announce.dismiss
# - navigation.footer
- navigation.tabs
- navitation.sections
- navigation.expand
- navigation.indexes
# - navigation.top
- search.suggest
- search.highlight
- search.share
- navigation.tracking
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to system preference
icon:
repo: fontawesome/brands/github-alt
admonition:
note: octicons/tag-16
abstract: octicons/checklist-16
info: octicons/info-16
tip: octicons/squirrel-16
success: octicons/check-16
question: octicons/question-16
warning: octicons/alert-16
failure: octicons/x-circle-16
danger: octicons/zap-16
bug: octicons/bug-16
example: octicons/beaker-16
quote: octicons/quote-16
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/ricolxwz
- icon: fontawesome/brands/gitlab
link: https://gitlab.com/ricolxwz
- icon: fontawesome/brands/docker
link: https://hub.docker.com/u/ricolxwz
generator: false
extra_css:
- stylesheets/extra.css
- https://unpkg.com/katex@0/dist/katex.min.css
extra_javascript:
- javascripts/katex.js
- https://unpkg.com/katex@0/dist/katex.min.js
- https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
markdown_extensions:
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.details
- pymdownx.critic
- pymdownx.caret
- pymdownx.keys
- pymdownx.mark
- pymdownx.tilde
- pymdownx.magiclink
- admonition
- attr_list
- md_in_html
- footnotes
- def_list
- tables
- pymdownx.arithmatex:
generic: true
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
plugins:
- search
nav:
- 开始:
- index.md
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mkdocs-material

0 comments on commit cb48ec1

Please sign in to comment.