mirror of
https://git.resf.org/sig_core/wiki.git
synced 2024-12-22 11:18:33 +00:00
merge template theme changes
This commit is contained in:
parent
285239f422
commit
b20d3acae8
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: mkdocs build
|
name: mkdocs build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -10,7 +11,7 @@ jobs:
|
|||||||
image: docker.io/rockylinux:9
|
image: docker.io/rockylinux:9
|
||||||
steps:
|
steps:
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: dnf -y install git python3 python3-pip
|
run: dnf -y upgrade && dnf -y install git python3 python3-pip cairo-devel
|
||||||
|
|
||||||
- name: setup ssh
|
- name: setup ssh
|
||||||
env:
|
env:
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
site/
|
site/
|
||||||
|
.cache
|
||||||
|
8
Containerfile
Normal file
8
Containerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM quay.io/rockylinux/rockylinux:9
|
||||||
|
|
||||||
|
RUN dnf -y upgrade
|
||||||
|
RUN dnf install -y git python3 python3-pip cairo-devel
|
||||||
|
|
||||||
|
COPY . /wiki
|
||||||
|
WORKDIR /wiki
|
||||||
|
RUN pip install -r requirements.txt
|
9
LICENSE
Normal file
9
LICENSE
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) <year> <copyright holders>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
README.md
26
README.md
@ -5,10 +5,32 @@ This is the wiki repository for SIG/Core.
|
|||||||
|
|
||||||
https://sig-core.rocky.page
|
https://sig-core.rocky.page
|
||||||
|
|
||||||
## Building
|
## Continuous Integration / Continuous Deployment
|
||||||
|
|
||||||
To test the appearance of this wiki, give it a try:
|
Actions Runner executes workflow to publish to https://REPLACEME.rocky.page on push to main.
|
||||||
|
|
||||||
|
## Building Locally
|
||||||
|
|
||||||
|
In order to build this wiki locally, a docker-compose configuration and container file are supplied which when invoked, will launch mkdocs' development server in a container bound to port 8000 and will live-reload when changes are made to the wiki files.
|
||||||
|
|
||||||
|
To run the containers on your system, invoke podman or docker compose like so:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
podman-compose -f docker-compose.yml up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
The container will build and then launch itself. Afterwards, you should be able to view the wiki content at http://localhost:8000.
|
||||||
|
|
||||||
|
The compose file accepts a build argument if you need to run it on a different port. For example, to bind to port 8080 on your local machine:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
podman-compose -f docker-compose --build-arg PORT=8080 up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Project layout
|
||||||
|
|
||||||
|
mkdocs.yml # The configuration file.
|
||||||
|
README.md # This file.
|
||||||
|
docs/
|
||||||
|
index.md # The documentation homepage.
|
||||||
|
... # Other markdown pages, images and other files.
|
||||||
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
wiki:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Containerfile
|
||||||
|
command: ["mkdocs", "serve", "-w", "/wiki", "--dev-addr", "0.0.0.0:${PORT:-8000}"]
|
||||||
|
volumes:
|
||||||
|
- .:/wiki:z,rw
|
||||||
|
ports:
|
||||||
|
- "${PORT:-8000}:8000"
|
31
docs/assets/extra.css
Normal file
31
docs/assets/extra.css
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
:root {
|
||||||
|
.md-nav__title[for="__drawer"] {
|
||||||
|
background: linear-gradient(135deg, #10b981 0%, #1055b9 100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="resf"] {
|
||||||
|
--md-accent-fg-color: #0e7391;
|
||||||
|
--md-primary-fg-color--dark: #107fa1;
|
||||||
|
--md-primary-fg-color--light: #FFFFFF;
|
||||||
|
--md-primary-fg-color: #107fa1;
|
||||||
|
--md-typeset-a-color: #107fa1;
|
||||||
|
}
|
||||||
|
[data-md-color-scheme="resf-dark"] {
|
||||||
|
color-scheme: dark;
|
||||||
|
--md-default-fg-color: #FFFFFF;
|
||||||
|
--md-default-bg-color: rgb(30, 33, 41);
|
||||||
|
|
||||||
|
--md-primary-fg-color: #107fa1;
|
||||||
|
--md-primary-bg-color: #FFFFFF;
|
||||||
|
--md-primary-fg-color--dark: #107fa1;
|
||||||
|
|
||||||
|
--md-accent-fg-color: #0e7391;
|
||||||
|
|
||||||
|
--md-default-fg-color--light: rgba(226, 228, 233, 0.56);
|
||||||
|
|
||||||
|
--md-typeset-table-color: rgba(240, 241, 244, 0.12);
|
||||||
|
|
||||||
|
--md-typeset-color: rgba(226, 228, 233, 0.82);
|
||||||
|
--md-typeset-a-color: #107fa1;
|
||||||
|
}
|
BIN
docs/assets/resf-icon-w-bg.png
Normal file
BIN
docs/assets/resf-icon-w-bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 381 KiB |
BIN
docs/assets/resf-icon.png
Normal file
BIN
docs/assets/resf-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
63
docs/assets/resf-white.svg
Normal file
63
docs/assets/resf-white.svg
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="44.450001mm"
|
||||||
|
height="44.450001mm"
|
||||||
|
viewBox="0 0 44.450001 44.450001"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
|
||||||
|
sodipodi:docname="resf-white.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:zoom="1.624662"
|
||||||
|
inkscape:cx="105.86818"
|
||||||
|
inkscape:cy="665.36917"
|
||||||
|
inkscape:window-width="1440"
|
||||||
|
inkscape:window-height="3356"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="52"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs1" />
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-2.5796834,-3.8748417)">
|
||||||
|
<path
|
||||||
|
d="M 2.5796834,3.8748417 H 47.029686 V 31.39389 l -6.87626,-6.876256 -5.13556,5.135562 -10.27113,-10.271125 -5.13556,5.135298 -10.2710976,-10.271045 -6.760395,6.760289 z"
|
||||||
|
fill="#ffffff"
|
||||||
|
id="path3"
|
||||||
|
style="stroke-width:0.264583" />
|
||||||
|
<path
|
||||||
|
d="m 40.153426,32.220977 -16.10386,16.103865 h 22.98012 v -9.227609 z"
|
||||||
|
fill="#ffffff"
|
||||||
|
id="path4"
|
||||||
|
style="stroke-width:0.264583" />
|
||||||
|
<path
|
||||||
|
d="M 24.746736,27.085415 31.166056,33.505 16.346271,48.324842 H 3.5072594 Z"
|
||||||
|
fill="#ffffff"
|
||||||
|
id="path5"
|
||||||
|
style="stroke-width:0.264583" />
|
||||||
|
<path
|
||||||
|
d="m 9.3400784,21.949588 -6.760395,6.760633 V 41.549127 L 15.759558,28.369173 Z"
|
||||||
|
fill="#ffffff"
|
||||||
|
id="path6"
|
||||||
|
style="stroke-width:0.264583" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.0 KiB |
62
mkdocs.yml
62
mkdocs.yml
@ -10,37 +10,57 @@ repo_url: https://git.resf.org/sig_core/wiki
|
|||||||
repo_name: sig_core/wiki
|
repo_name: sig_core/wiki
|
||||||
edit_uri: edit/main/docs/
|
edit_uri: edit/main/docs/
|
||||||
|
|
||||||
|
copyright: Copyright © 2022-2024 Rocky Enterprise Software Foundation
|
||||||
|
|
||||||
|
extra_css:
|
||||||
|
- assets/extra.css
|
||||||
|
|
||||||
|
# Configuration
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
|
logo: assets/resf-white.svg
|
||||||
palette:
|
palette:
|
||||||
- media: "(prefers-color-scheme: light)"
|
- media: "(prefers-color-scheme: light)"
|
||||||
scheme: default
|
scheme: resf
|
||||||
primary: teal
|
|
||||||
accent: teal
|
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/weather-night
|
icon: material/weather-night
|
||||||
name: Switch to dark mode
|
name: Switch to dark mode
|
||||||
- media: "(prefers-color-scheme: dark)"
|
- media: "(prefers-color-scheme: dark)"
|
||||||
scheme: slate
|
scheme: resf-dark
|
||||||
primary: teal
|
|
||||||
accent: teal
|
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/weather-night
|
icon: material/weather-sunny
|
||||||
name: Switch to dark mode
|
name: Switch to light mode
|
||||||
logo: assets/icon-white.svg
|
|
||||||
highlightjs: true
|
highlightjs: true
|
||||||
hljs_languages:
|
hljs_languages:
|
||||||
- bash
|
- bash
|
||||||
|
- perl
|
||||||
- python
|
- python
|
||||||
- yaml
|
- yaml
|
||||||
- perl
|
|
||||||
features:
|
features:
|
||||||
|
- navigation.expand
|
||||||
|
- navigation.indexes
|
||||||
|
- navigation.instant
|
||||||
|
- navigation.sections
|
||||||
|
- navigation.top
|
||||||
|
- navigation.tracking
|
||||||
|
- navigation.path
|
||||||
- search.highlight
|
- search.highlight
|
||||||
- search.suggest
|
- search.suggest
|
||||||
- toc.integrate
|
- toc.integrate
|
||||||
#- navigation.tabs
|
- content.action.edit
|
||||||
#- navigation.tabs.sticky
|
|
||||||
#- navigation.top
|
# Plugins
|
||||||
|
plugins:
|
||||||
|
- autolinks
|
||||||
|
- social
|
||||||
|
- awesome-pages
|
||||||
|
- git-revision-date-localized:
|
||||||
|
type: date
|
||||||
|
- search
|
||||||
|
- macros:
|
||||||
|
include_dir: docs/include
|
||||||
|
|
||||||
|
# Extensions
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- abbr
|
- abbr
|
||||||
- admonition
|
- admonition
|
||||||
@ -48,22 +68,12 @@ markdown_extensions:
|
|||||||
- def_list
|
- def_list
|
||||||
- footnotes
|
- footnotes
|
||||||
- meta
|
- meta
|
||||||
- pymdownx.details # collapsable attributions
|
- pymdownx.details # this allows collapsible attributions
|
||||||
- pymdownx.emoji:
|
- pymdownx.emoji:
|
||||||
emoji_index: !!python/name:materialx.emoji.twemoji
|
emoji_index: !!python/name:material.extensions.emoji.twemoji
|
||||||
emoji_generator: !!python/name:materialx.emoji.to_svg
|
emoji_generator: !!python/name:material.extensions.emoji.to_svg
|
||||||
- pymdownx.superfences
|
- pymdownx.superfences
|
||||||
- pymdownx.tabbed:
|
- pymdownx.tabbed:
|
||||||
alternate_style: true
|
alternate_style: true
|
||||||
- toc:
|
- toc:
|
||||||
permalink: true
|
permalink: true
|
||||||
|
|
||||||
plugins:
|
|
||||||
- autolinks
|
|
||||||
- awesome-pages
|
|
||||||
- git-revision-date
|
|
||||||
- search
|
|
||||||
- macros:
|
|
||||||
include_dir: docs/include
|
|
||||||
copyright: Copyright © 2023 Rocky Enterprise Software Foundation
|
|
||||||
...
|
|
||||||
|
@ -2,7 +2,8 @@ mkdocs
|
|||||||
mkdocs-cinder
|
mkdocs-cinder
|
||||||
mkdocs-autolinks-plugin
|
mkdocs-autolinks-plugin
|
||||||
mkdocs-awesome-pages-plugin
|
mkdocs-awesome-pages-plugin
|
||||||
mkdocs-git-revision-date-plugin
|
mkdocs-git-revision-date-localized-plugin
|
||||||
mkdocs-macros-plugin
|
mkdocs-macros-plugin
|
||||||
mkdocs-material
|
mkdocs-material
|
||||||
mkdocs-windmill
|
mkdocs-windmill
|
||||||
|
mkdocs-material[imaging]
|
||||||
|
Loading…
Reference in New Issue
Block a user