Initial Commit
Bringing Documentation into Gitea
This commit is contained in:
43
Ansible Documentation/Playbooks/Windows/Hyper-V/Deploy-VM.md
Normal file
43
Ansible Documentation/Playbooks/Windows/Hyper-V/Deploy-VM.md
Normal file
@ -0,0 +1,43 @@
|
||||
### Deploy-VM
|
||||
**Purpose**: Deploy an Ubuntu Server 20.04 Virtual Machine to Hyper-V from an ISO image located at a pre-defined location.
|
||||
```jsx title="Playbooks/Windows/Hyper-V/Deploy-VM.yml"
|
||||
---
|
||||
- name: Deploy Hyper-V Guest VM
|
||||
hosts: all
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
- name: Set the randomized Hyper-V Guest VM Name Variable
|
||||
set_fact:
|
||||
vm_name_fact: "{{ vm_name }}"
|
||||
|
||||
- name: Create VM folder
|
||||
ansible.windows.win_file:
|
||||
path: "{{ vm_folder }}"
|
||||
state: directory
|
||||
|
||||
- name: Create Guest VM
|
||||
ansible.windows.win_shell: |
|
||||
New-VM -Name "{{ vm_name_fact }}" -MemoryStartupBytes "{{ vm_memory }}" -NewVHDPath "{{ vm_folder }}\\{{ vm_name_fact }}.vhdx" -NewVHDSizeBytes "{{ vm_storage }}" -Path "{{ vm_folder }}" -Generation 2
|
||||
register: vm_creation_result
|
||||
|
||||
- name: Attach ISO to VM
|
||||
ansible.windows.win_shell: |
|
||||
Add-VMDvdDrive -VMName "{{ vm_name_fact }}" -Path "{{ iso_path }}"
|
||||
when: vm_creation_result is changed
|
||||
|
||||
- name: Configure VM to boot from DVD
|
||||
ansible.windows.win_shell: |
|
||||
Set-VMFirmware -VMName "{{ vm_name_fact }}" -FirstBootDevice (Get-VMDvdDrive -VMName "{{ vm_name }}")
|
||||
when: vm_creation_result is changed
|
||||
|
||||
- name: Disable VM Secure Boot
|
||||
ansible.windows.win_shell: |
|
||||
Set-VMFirmware -VMName "{{ vm_name_fact }}" -EnableSecureBoot Off
|
||||
when: vm_creation_result is changed
|
||||
|
||||
- name: Start Guest VM
|
||||
ansible.windows.win_shell: |
|
||||
Start-VM -Name "{{ vm_name_fact }}"
|
||||
when: vm_creation_result is changed
|
||||
```
|
@ -0,0 +1,70 @@
|
||||
**Purpose**: Self-hosted open-source no-code business automation tool.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3.0'
|
||||
services:
|
||||
activepieces:
|
||||
image: activepieces/activepieces:0.3.11
|
||||
container_name: activepieces
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
ports:
|
||||
- '8080:80'
|
||||
environment:
|
||||
- 'POSTGRES_DB=${AP_POSTGRES_DATABASE}'
|
||||
- 'POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}'
|
||||
- 'POSTGRES_USER=${AP_POSTGRES_USERNAME}'
|
||||
env_file: stack.env
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.62
|
||||
postgres:
|
||||
image: 'postgres:14.4'
|
||||
container_name: postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- 'POSTGRES_DB=${AP_POSTGRES_DATABASE}'
|
||||
- 'POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}'
|
||||
- 'POSTGRES_USER=${AP_POSTGRES_USERNAME}'
|
||||
volumes:
|
||||
- /srv/containers/activepieces/postgresql:/var/lib/postgresql/data'
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.61
|
||||
redis:
|
||||
image: 'redis:7.0.7'
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /srv/containers/activepieces/redis:/data'
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.60
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js
|
||||
AP_ENCRYPTION_KEY=e81f8754faa04acaa7b13caa5d2c6a5a
|
||||
AP_JWT_SECRET=REDACTED #BE SURE TO SET THIS WITH A VALID JWT SECRET > REFER TO OFFICIAL DOCUMENTATION
|
||||
AP_ENVIRONMENT=prod
|
||||
AP_FRONTEND_URL=https://ap.cyberstrawberry.net
|
||||
AP_NODE_EXECUTABLE_PATH=/usr/local/bin/node
|
||||
AP_POSTGRES_DATABASE=activepieces
|
||||
AP_POSTGRES_HOST=192.168.5.61
|
||||
AP_POSTGRES_PORT=5432
|
||||
AP_POSTGRES_USERNAME=postgres
|
||||
AP_POSTGRES_PASSWORD=REDACTED #USE A SECURE SHORT PASSWORD > ENSURE ITS NOT TOO LONG FOR POSTGRESQL
|
||||
AP_REDIS_HOST=redis
|
||||
AP_REDIS_PORT=6379
|
||||
AP_SANDBOX_RUN_TIME_SECONDS=600
|
||||
AP_TELEMETRY_ENABLED=true
|
||||
```
|
@ -0,0 +1,30 @@
|
||||
**Purpose**: AdGuard Home is a network-wide software for blocking ads & tracking. After you set it up, it will cover ALL your home devices, and you don’t need any client-side software for that. With the rise of Internet-Of-Things and connected devices, it becomes more and more important to be able to control your whole network.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: adguard/adguardhome
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 53:53
|
||||
- 80:80
|
||||
volumes:
|
||||
- /srv/containers/adguard_home/workingdir:/opt/adguardhome/work
|
||||
- /srv/containers/adguard_home/config:/opt/adguardhome/conf
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.189
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
45
Container Documentation/Docker/Docker Compose/Authelia.md
Normal file
45
Container Documentation/Docker/Docker Compose/Authelia.md
Normal file
@ -0,0 +1,45 @@
|
||||
**Purpose**: Authelia is an open-source authentication and authorization server and portal fulfilling the identity and access management (IAM) role of information security in providing multi-factor authentication and single sign-on (SSO) for your applications via a web portal. It acts as a companion for common reverse proxies.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
services:
|
||||
authelia:
|
||||
image: authelia/authelia
|
||||
container_name: authelia
|
||||
volumes:
|
||||
- /mnt/authelia/config:/config
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.159
|
||||
expose:
|
||||
- 9091
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
disable: true
|
||||
environment:
|
||||
- TZ=America/Denver
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
container_name: redis
|
||||
volumes:
|
||||
- /mnt/authelia/redis:/data
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.158
|
||||
expose:
|
||||
- 6379
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=America/Denver
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
@ -0,0 +1,99 @@
|
||||
**Purpose**: Docker container running Ubuntu Minimal 22.04 that automates much of the script mentioned in the [Git Repo Updater](https://docs.cyberstrawberry.net/General%20Scripts/Bash/Git%20Repo%20Updater) document. It offers the additional benefits of checking for updates every 5 seconds instead of every 60 seconds. It also accepts environment variables to provide credentials and notification settings.
|
||||
|
||||
### Deployment
|
||||
You can find the current up-to-date Gitea repository that includes the `docker-compose.yml` and `.env` files that you need to deploy everything [here](https://git.cyberstrawberry.net/container-registry/-/packages/container/git-repo-updater/latest)
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3.3'
|
||||
services:
|
||||
git-repo-updater:
|
||||
privileged: true
|
||||
container_name: git-repo-updater
|
||||
environment:
|
||||
- REPO_URL=${REPO_URL}
|
||||
- COPY_DIR=${COPY_DIR}
|
||||
- NTFY_URL=${NTFY_URL}
|
||||
- GIT_USERNAME=${GIT_USERNAME}
|
||||
- GIT_PASSWORD=${GIT_PASSWORD}
|
||||
- TZ=America/Denver
|
||||
image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest
|
||||
volumes:
|
||||
#This folder is where the repository will be downloaded and updated - it needs a unique folder name.
|
||||
- ${TEMP_DIR}:/root/Repo_Watcher/repo
|
||||
#This is where you want the git repository data to be copied to (e.g. a server's data folder)
|
||||
- ${DESTINATION}:/DATA
|
||||
restart: always
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
REPO_URL=https://git.cyberstrawberry.net/cyberstrawberry/placeholder.git
|
||||
NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater
|
||||
TEMP_DIR=/srv/containers/git-repo-updater/REPO-NAME
|
||||
DESTINATION=/srv/containers/server-name/data
|
||||
GIT_USERNAME=nicole.rappe
|
||||
GIT_PASSWORD=USE-AN-APP-PASSWORD
|
||||
```
|
||||
### Build / Development
|
||||
If you want to learn how the container was assembled, the related build files are located [here](https://git.cyberstrawberry.net/container-registry/git-repo-updater)
|
||||
```jsx title="Dockerfile"
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Install necessary packages
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git curl rsync
|
||||
|
||||
# Add script
|
||||
COPY repo_watcher.sh /root/Repo_Watcher/repo_watcher.sh
|
||||
|
||||
# Make script executable
|
||||
RUN chmod +x /root/Repo_Watcher/repo_watcher.sh
|
||||
|
||||
# Start script
|
||||
CMD ["/bin/bash", "-c", "/root/Repo_Watcher/repo_watcher.sh"]
|
||||
```
|
||||
|
||||
```jsx title="repo_watcher.sh"
|
||||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
# Set Git credentials
|
||||
git config --global credential.helper 'store --file /tmp/git-credentials'
|
||||
echo "url=$REPO_URL" > /tmp/git-credentials
|
||||
echo "username=$GIT_USERNAME" >> /tmp/git-credentials
|
||||
echo "password=$GIT_PASSWORD" >> /tmp/git-credentials
|
||||
|
||||
# Navigate to the watcher directory
|
||||
cd /root/Repo_Watcher
|
||||
|
||||
# Clone the repo if it doesn't exist
|
||||
if [ -z "$(find /root/Repo_Watcher/repo -maxdepth 1 -mindepth 1 -type f -o -type d 2>/dev/null)" ]; then
|
||||
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
|
||||
echo "Repository $REPO_URL doesn't exist locally - Downloading..."
|
||||
git clone $REPO_URL repo
|
||||
cd repo
|
||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||
fi
|
||||
|
||||
cd repo
|
||||
|
||||
# Fetch the latest changes
|
||||
git fetch origin main
|
||||
|
||||
# Check if the local repository is behind the remote
|
||||
LOCAL=$(git rev-parse @)
|
||||
REMOTE=$(git rev-parse @{u})
|
||||
BASE=$(git merge-base @ @{u})
|
||||
|
||||
if [ $LOCAL = $REMOTE ]; then
|
||||
echo "Repository Up-to-Date"
|
||||
else
|
||||
curl -d "$REPO_URL Automatically Pulling Updates..." $NTFY_URL
|
||||
echo "Pulling Updates from Repository..."
|
||||
git pull origin main
|
||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||
fi
|
||||
|
||||
# Wait for 5 seconds before the next iteration
|
||||
sleep 5
|
||||
|
||||
done
|
||||
```
|
59
Container Documentation/Docker/Docker Compose/Dashy.md
Normal file
59
Container Documentation/Docker/Docker Compose/Dashy.md
Normal file
@ -0,0 +1,59 @@
|
||||
**Purpose**: A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3.8"
|
||||
services:
|
||||
dashy:
|
||||
container_name: Dashy
|
||||
|
||||
# Pull latest image from DockerHub
|
||||
image: lissy93/dashy
|
||||
|
||||
# Set port that web service will be served on. Keep container port as 80
|
||||
ports:
|
||||
- 4000:80
|
||||
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dashy.rule=Host(`dashboard.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.dashy.entrypoints=websecure"
|
||||
- "traefik.http.routers.dashy.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.dashy.loadbalancer.server.port=80"
|
||||
|
||||
# Set any environmental variables
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- UID=1000
|
||||
- GID=1000
|
||||
|
||||
# Pass in your config file below, by specifying the path on your host machine
|
||||
volumes:
|
||||
- /srv/Containers/Dashy/conf.yml:/app/public/conf.yml
|
||||
- /srv/Containers/Dashy/item-icons:/app/public/item-icons
|
||||
|
||||
# Specify restart policy
|
||||
restart: unless-stopped
|
||||
|
||||
# Configure healthchecks
|
||||
healthcheck:
|
||||
test: ['CMD', 'node', '/app/services/healthcheck']
|
||||
interval: 1m30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# Connect container to Docker_Network
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.57
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
34
Container Documentation/Docker/Docker Compose/Docusaurus.md
Normal file
34
Container Documentation/Docker/Docker Compose/Docusaurus.md
Normal file
@ -0,0 +1,34 @@
|
||||
**Purpose**: An optimized site generator in React. Docusaurus helps you to move fast and write content. Build documentation websites, blogs, marketing pages, and more.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
docusaurus:
|
||||
image: awesometic/docusaurus
|
||||
container_name: docusaurus
|
||||
environment:
|
||||
- TARGET_UID=1000
|
||||
- TARGET_GID=1000
|
||||
- AUTO_UPDATE=true
|
||||
- WEBSITE_NAME=docusaurus
|
||||
- TEMPLATE=classic
|
||||
- TZ=America/Denver
|
||||
restart: always
|
||||
volumes:
|
||||
- /srv/containers/docusaurus:/docusaurus
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.72
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
49
Container Documentation/Docker/Docker Compose/Frigate.md
Normal file
49
Container Documentation/Docker/Docker Compose/Frigate.md
Normal file
@ -0,0 +1,49 @@
|
||||
**Purpose**: A complete and local NVR designed for Home Assistant with AI object detection. Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3.9"
|
||||
services:
|
||||
frigate:
|
||||
container_name: frigate
|
||||
privileged: true # this may not be necessary for all setups
|
||||
restart: unless-stopped
|
||||
image: blakeblackshear/frigate:stable
|
||||
shm_size: "256mb" # update for your cameras based on calculation above
|
||||
# devices:
|
||||
# - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
|
||||
# - /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
|
||||
# - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /mnt/1TB_STORAGE/frigate/config.yml:/config/config.yml:ro
|
||||
- /mnt/1TB_STORAGE/frigate/media:/media/frigate
|
||||
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
||||
target: /tmp/cache
|
||||
tmpfs:
|
||||
size: 4000000000
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "1935:1935" # RTMP feeds
|
||||
environment:
|
||||
FRIGATE_RTSP_PASSWORD: ${FRIGATE_RTSP_PASSWORD}
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.201
|
||||
|
||||
mqtt:
|
||||
container_name: mqtt
|
||||
image: eclipse-mosquitto:1.6
|
||||
ports:
|
||||
- "1883:1883"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.202
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
FRIGATE_RTSP_PASSWORD=SomethingSecure101
|
||||
```
|
58
Container Documentation/Docker/Docker Compose/Gitea.md
Normal file
58
Container Documentation/Docker/Docker Compose/Gitea.md
Normal file
@ -0,0 +1,58 @@
|
||||
**Purpose**: Gitea is a painless self-hosted all-in-one software development service, it includes Git hosting, code review, team collaboration, package registry and CI/CD. It is similar to GitHub, Bitbucket and GitLab. Gitea was forked from Gogs originally and almost all the code has been changed.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
privileged: true
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- TZ=America/Denver
|
||||
restart: always
|
||||
volumes:
|
||||
- /srv/containers/gitea:/data
|
||||
# - /etc/timezone:/etc/timezone:ro
|
||||
# - /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.70
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.deeptree-gitea.rule=Host(`git.domain.xyz`)"
|
||||
# - "traefik.http.routers.deeptree-gitea.entrypoints=websecure"
|
||||
# - "traefik.http.routers.deeptree-gitea.tls.certresolver=myresolver"
|
||||
# - "traefik.http.services.deeptree-gitea.loadbalancer.server.port=3000"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
postgres:
|
||||
image: postgres:12-alpine
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- /srv/containers/gitea/db:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_DB=gitea
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- TZ=America/Denver
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.71
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
POSTGRES_PASSWORD=SomethingSecure
|
||||
```
|
@ -0,0 +1,37 @@
|
||||
**Purpose**: Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3'
|
||||
services:
|
||||
homeassistant:
|
||||
container_name: homeassistant
|
||||
image: "ghcr.io/home-assistant/home-assistant:stable"
|
||||
environment:
|
||||
- TZ=America/Denver
|
||||
volumes:
|
||||
- /srv/containers/Home-Assistant-Core:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: always
|
||||
privileged: true
|
||||
ports:
|
||||
- 8123:8123
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.252
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.homeassistant.rule=Host(`automation.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.homeassistant.entrypoints=websecure"
|
||||
- "traefik.http.routers.homeassistant.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
@ -0,0 +1,41 @@
|
||||
**Purpose**: A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3.8'
|
||||
services:
|
||||
homepage:
|
||||
image: ghcr.io/benphelps/homepage:latest
|
||||
container_name: homepage
|
||||
volumes:
|
||||
- /srv/containers/homepage-docker:/config
|
||||
- /srv/containers/homepage-docker/icons:/app/public/icons
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 3000:3000
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=America/Denver
|
||||
dns:
|
||||
- 192.168.3.10
|
||||
- 192.168.3.11
|
||||
restart: unless-stopped
|
||||
extra_hosts:
|
||||
- "rancher.cyberstrawberry.net:192.168.3.21"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.44
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
26
Container Documentation/Docker/Docker Compose/IT-Tools.md
Normal file
26
Container Documentation/Docker/Docker Compose/IT-Tools.md
Normal file
@ -0,0 +1,26 @@
|
||||
**Purpose**: Collection of handy online tools for developers, with great UX.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
server:
|
||||
image: corentinth/it-tools:latest
|
||||
container_name: it-tools
|
||||
environment:
|
||||
- TZ=America/Denver
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.16
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
43
Container Documentation/Docker/Docker Compose/Kopia.md
Normal file
43
Container Documentation/Docker/Docker Compose/Kopia.md
Normal file
@ -0,0 +1,43 @@
|
||||
**Purpose**: Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3.7'
|
||||
services:
|
||||
kopia:
|
||||
image: kopia/kopia:latest
|
||||
hostname: kopia-backup
|
||||
user: root
|
||||
restart: always
|
||||
ports:
|
||||
- 51515:51515
|
||||
environment:
|
||||
- KOPIA_PASSWORD=${KOPIA_ENRYPTION_PASSWORD}
|
||||
- TZ=America/Denver
|
||||
privileged: true
|
||||
volumes:
|
||||
- /srv/containers/kopia/config:/app/config
|
||||
- /srv/containers/kopia/cache:/app/cache
|
||||
- /srv/containers/kopia/cache:/app/logs
|
||||
- /srv:/srv
|
||||
- /usr/share/zoneinfo:/usr/share/zoneinfo
|
||||
entrypoint: ["/bin/kopia", "server", "start", "--insecure", "--timezone=America/Denver", "--address=0.0.0.0:51515", "--override-username=${KOPIA_SERVER_USERNAME}", "--server-username=${KOPIA_SERVER_USERNAME}", "--server-password=${KOPIA_SERVER_PASSWORD}", "--disable-csrf-token-checks"]
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.14
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
:::note Credentials:
|
||||
Your username will be `kopia@kopia-backup` and the password will be the value you set for `--server-password` in the entrypoint section of the compose file. The `KOPIA_PASSWORD:` is used by the backup repository, such as Backblaze B2, to encrypt/decrypt the backed-up data, and must be updated in the compose file if the repository is changed / updated.
|
||||
:::
|
||||
|
||||
```jsx title=".env"
|
||||
KOPIA_ENRYPTION_PASSWORD=PasswordUsedToEncryptDataOnBackblazeB2
|
||||
KOPIA_SERVER_PASSWORD=ThisIsUsedToLogIntoKopiaWebUI
|
||||
KOPIA_SERVER_USERNAME=kopia@kopia-backup
|
||||
```
|
34
Container Documentation/Docker/Docker Compose/NGINX.md
Normal file
34
Container Documentation/Docker/Docker Compose/NGINX.md
Normal file
@ -0,0 +1,34 @@
|
||||
**Purpose**: NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
---
|
||||
version: "2.1"
|
||||
services:
|
||||
nginx:
|
||||
image: lscr.io/linuxserver/nginx:latest
|
||||
container_name: nginx
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=America/Denver
|
||||
volumes:
|
||||
- /srv/containers/nginx-portfolio-website:/config
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.12
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
65
Container Documentation/Docker/Docker Compose/Nextcloud.md
Normal file
65
Container Documentation/Docker/Docker Compose/Nextcloud.md
Normal file
@ -0,0 +1,65 @@
|
||||
**Purpose**: Deploy a Nextcloud and PostgreSQL database together.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "2.1"
|
||||
services:
|
||||
app:
|
||||
image: nextcloud:apache
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.nextcloud.rule=Host(`cloud.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
||||
- "traefik.http.routers.nextcloud.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
|
||||
environment:
|
||||
- TZ=${TZ}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_HOST=${POSTGRES_HOST}
|
||||
- OVERWRITEPROTOCOL=https
|
||||
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
|
||||
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
|
||||
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
|
||||
volumes:
|
||||
- /mnt/nextcloud/app:/config
|
||||
- /mnt/nextcloud/data:/data
|
||||
ports:
|
||||
- 443:443
|
||||
- 80:80
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.3.11
|
||||
db:
|
||||
image: postgres:12-alpine
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
volumes:
|
||||
- /mnt/nextcloud/db:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5432:5432
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.3.12
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
TZ=America/Denver
|
||||
POSTGRES_PASSWORD=SomeSecurePassword
|
||||
POSTGRES_USER=ncadmin
|
||||
POSTGRES_HOST=192.168.3.10
|
||||
POSTGRES_DB=nextcloud
|
||||
NEXTCLOUD_ADMIN_USER=admin
|
||||
NEXTCLOUD_ADMIN_PASSWORD=SomeSuperSecurePassword
|
||||
NEXTCLOUD_TRUSTED_DOMAINS=cloud.cyberstrawberry.net
|
||||
```
|
45
Container Documentation/Docker/Docker Compose/Niltalk.md
Normal file
45
Container Documentation/Docker/Docker Compose/Niltalk.md
Normal file
@ -0,0 +1,45 @@
|
||||
**Purpose**: Niltalk is a web based disposable chat server. It allows users to create password protected disposable, ephemeral chatrooms and invite peers to chat rooms.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:alpine
|
||||
volumes:
|
||||
- /srv/niltalk
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.196
|
||||
|
||||
niltalk:
|
||||
image: kailashnadh/niltalk:latest
|
||||
ports:
|
||||
- "9000:9000"
|
||||
depends_on:
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.197
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.niltalk.rule=Host(`temp.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.niltalk.entrypoints=websecure"
|
||||
- "traefik.http.routers.niltalk.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.niltalk.loadbalancer.server.port=9000"
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
niltalk-data:
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
29
Container Documentation/Docker/Docker Compose/Node-Red.md
Normal file
29
Container Documentation/Docker/Docker Compose/Node-Red.md
Normal file
@ -0,0 +1,29 @@
|
||||
**Purpose**: Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
node-red:
|
||||
image: nodered/node-red:latest
|
||||
environment:
|
||||
- TZ=America/Denver
|
||||
ports:
|
||||
- "1880:1880"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.92
|
||||
volumes:
|
||||
- /srv/containers/node-red:/data
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
34
Container Documentation/Docker/Docker Compose/Ntfy.md
Normal file
34
Container Documentation/Docker/Docker Compose/Ntfy.md
Normal file
@ -0,0 +1,34 @@
|
||||
**Purpose**: ntfy (pronounced notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, and/or using a REST API. It's infinitely flexible, and 100% free software.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "2.1"
|
||||
services:
|
||||
ntfy:
|
||||
image: binwiederhier/ntfy
|
||||
container_name: ntfy
|
||||
command:
|
||||
- serve
|
||||
environment:
|
||||
- TZ=America/Denver # optional: Change to your desired timezone
|
||||
#user: UID:GID # optional: Set custom user/group or uid/gid
|
||||
volumes:
|
||||
- /srv/containers/ntfy/cache:/var/cache/ntfy
|
||||
- /srv/containers/ntfy/etc:/etc/ntfy
|
||||
ports:
|
||||
- 80:80
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.45
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
@ -0,0 +1,63 @@
|
||||
**Purpose**: ONLYOFFICE offers a secure online office suite highly compatible with MS Office formats. Generally used with Nextcloud to edit documents directly within the web browser.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: onlyoffice/documentserver-ee
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- /srv/containers/onlyoffice/DocumentServer/logs:/var/log/onlyoffice
|
||||
- /srv/containers/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data
|
||||
- /srv/containers/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice
|
||||
- /srv/containers/onlyoffice/DocumentServer/db:/var/lib/postgresql
|
||||
- /srv/containers/onlyoffice/DocumentServer/fonts:/usr/share/fonts/truetype/custom
|
||||
- /srv/containers/onlyoffice/DocumentServer/forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten
|
||||
- /srv/containers/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq
|
||||
- /srv/containers/onlyoffice/DocumentServer/redis:/var/lib/redis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.cyberstrawberry-onlyoffice.rule=Host(`office.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.cyberstrawberry-onlyoffice.entrypoints=websecure"
|
||||
- "traefik.http.routers.cyberstrawberry-onlyoffice.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.cyberstrawberry-onlyoffice.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.cyberstrawberry-onlyoffice.middlewares=onlyoffice-headers"
|
||||
- "traefik.http.middlewares.onlyoffice-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
|
||||
#- "traefik.http.middlewares.onlyoffice-headers.headers.accessControlAllowOrigin=*"
|
||||
environment:
|
||||
- JWT_ENABLED=true
|
||||
- JWT_SECRET=REDACTED #SET THIS TO SOMETHING SECURE
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.143
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
||||
:::tip
|
||||
If you wish to use this in a non-commercial homelab environment without limits, [this script](https://wiki.muwahhid.ru/ru/Unraid/Docker/Onlyoffice-Document-Server) does an endless trial without functionality limits.
|
||||
```
|
||||
docker stop office-document-server-ee
|
||||
docker rm office-document-server-ee
|
||||
rm -r /mnt/user/appdata/onlyoffice/DocumentServer
|
||||
sleep 5
|
||||
<USE A PORTAINER WEBHOOK TO RECREATE THE CONTAINER OR REFERENCE THE DOCKER RUN METHOD BELOW>
|
||||
```
|
||||
|
||||
Docker Run Method:
|
||||
```
|
||||
docker run -d --name='office-document-server-ee' --net='bridge' -e TZ="Europe/Moscow" -e HOST_OS="Unraid" -e 'JWT_ENABLED'='true' -e 'JWT_SECRET'='mySecret' -p '8082:80/tcp' -p '4432:443/tcp' -v '/mnt/user/appdata/onlyoffice/DocumentServer/logs':'/var/log/onlyoffice':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/data':'/var/www/onlyoffice/Data':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/lib':'/var/lib/onlyoffice':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/db':'/var/lib/postgresql':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/fonts':'/usr/share/fonts/truetype/custom':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/forgotten':'/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/rabbitmq':'/var/lib/rabbitmq':'rw' -v '/mnt/user/appdata/onlyoffice/DocumentServer/redis':'/var/lib/redis':'rw' 'onlyoffice/documentserver-ee'
|
||||
```
|
||||
:::
|
||||
|
@ -0,0 +1,32 @@
|
||||
**Purpose**: An application to securely communicate passwords over the web. Passwords automatically expire after a certain number of views and/or time has passed. Track who, what and when.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
passwordpusher:
|
||||
image: pglombardo/pwpush-ephemeral:release
|
||||
expose:
|
||||
- 5100
|
||||
restart: always
|
||||
environment:
|
||||
# Read Documention on how to generate a master key, then put it below
|
||||
- PWPUSH_MASTER_KEY=${PWPUSH_MASTER_KEY}
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.170
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.passwordpusher.rule=Host(`pw.domain.com`)"
|
||||
- "traefik.http.routers.passwordpusher.entrypoints=websecure"
|
||||
- "traefik.http.routers.passwordpusher.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.passwordpusher.loadbalancer.server.port=5100"
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
PWPUSH_MASTER_KEY=<PASSWORD> # Read Documention on how to generate a master key, then put it here
|
||||
```
|
41
Container Documentation/Docker/Docker Compose/Pi-Hole.md
Normal file
41
Container Documentation/Docker/Docker Compose/Pi-Hole.md
Normal file
@ -0,0 +1,41 @@
|
||||
**Purpose**: Pi-hole is a Linux network-level advertisement and Internet tracker blocking application which acts as a DNS sinkhole and optionally a DHCP server, intended for use on a private network.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3"
|
||||
|
||||
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
|
||||
services:
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:latest
|
||||
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
|
||||
- "80:80/tcp"
|
||||
environment:
|
||||
TZ: 'America/Denver'
|
||||
WEBPASSWORD: 'REDACTED' #USE A SECURE PASSWORD HERE
|
||||
# Volumes store your data between container upgrades
|
||||
volumes:
|
||||
- /srv/containers/pihole/app:/etc/pihole
|
||||
- /srv/containers/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
|
||||
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
||||
# cap_add:
|
||||
# - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.190
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
93
Container Documentation/Docker/Docker Compose/RocketChat.md
Normal file
93
Container Documentation/Docker/Docker Compose/RocketChat.md
Normal file
@ -0,0 +1,93 @@
|
||||
**Purpose**: Deploy a RocketChat and MongoDB database together.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
services:
|
||||
rocketchat:
|
||||
image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest}
|
||||
restart: always
|
||||
# labels:
|
||||
# traefik.enable: "true"
|
||||
# traefik.http.routers.rocketchat.rule: Host(`${DOMAIN:-}`)
|
||||
# traefik.http.routers.rocketchat.tls: "true"
|
||||
# traefik.http.routers.rocketchat.entrypoints: https
|
||||
# traefik.http.routers.rocketchat.tls.certresolver: le
|
||||
environment:
|
||||
MONGO_URL: "${MONGO_URL:-\
|
||||
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-rc_mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
|
||||
${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
|
||||
MONGO_OPLOG_URL: "${MONGO_OPLOG_URL:\
|
||||
-mongodb://${MONGODB_ADVERTISED_HOSTNAME:-rc_mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
|
||||
local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
|
||||
ROOT_URL: ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
|
||||
PORT: ${PORT:-3000}
|
||||
DEPLOY_METHOD: docker
|
||||
DEPLOY_PLATFORM: ${DEPLOY_PLATFORM:-}
|
||||
REG_TOKEN: ${REG_TOKEN:-}
|
||||
depends_on:
|
||||
- rc_mongodb
|
||||
expose:
|
||||
- ${PORT:-3000}
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
ports:
|
||||
- "${BIND_IP:-0.0.0.0}:${HOST_PORT:-3000}:${PORT:-3000}"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.2
|
||||
|
||||
rc_mongodb:
|
||||
image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-5.0}
|
||||
restart: always
|
||||
volumes:
|
||||
- /srv/deeptree/rocket.chat/mongodb:/bitnami/mongodb
|
||||
environment:
|
||||
MONGODB_REPLICA_SET_MODE: primary
|
||||
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
|
||||
MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
|
||||
MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-rc_mongodb}
|
||||
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
|
||||
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-rc_mongodb}
|
||||
MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
|
||||
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.3
|
||||
|
||||
networks:
|
||||
docker__network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
TZ=America/Denver
|
||||
RELEASE=6.3.0
|
||||
PORT=3000 #Redundant - Can be Removed
|
||||
MONGODB_VERSION=6.0
|
||||
MONGODB_INITIAL_PRIMARY_HOST=rc_mongodb #Redundant - Can be Removed
|
||||
MONGODB_ADVERTISED_HOSTNAME=rc_mongodb #Redundant - Can be Removed
|
||||
```
|
||||
## Reverse Proxy Configuration
|
||||
```jsx title="nginx.conf"
|
||||
# Rocket.Chat Server
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name rocketchat.domain.net;
|
||||
error_log /var/log/nginx/new_rocketchat_error.log;
|
||||
client_max_body_size 500M;
|
||||
location / {
|
||||
proxy_pass http://192.168.5.2:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Nginx-Proxy true;
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
||||
```
|
29
Container Documentation/Docker/Docker Compose/SearX.md
Normal file
29
Container Documentation/Docker/Docker Compose/SearX.md
Normal file
@ -0,0 +1,29 @@
|
||||
**Purpose**: Deploys a SearX Meta Search Engine Server
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3'
|
||||
services:
|
||||
searx:
|
||||
image: searx/searx:latest
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- /srv/containers/searx/:/etc/searx
|
||||
restart: always
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.searx.rule=Host(`searx.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.searx.entrypoints=websecure"
|
||||
- "traefik.http.routers.searx.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.searx.loadbalancer.server.port=8080"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.124
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
102
Container Documentation/Docker/Docker Compose/Snipe-IT.md
Normal file
102
Container Documentation/Docker/Docker Compose/Snipe-IT.md
Normal file
@ -0,0 +1,102 @@
|
||||
**Purpose**: A free open source IT asset/license management system.
|
||||
|
||||
!!! warning
|
||||
The Snipe-IT container will attempt to launch after the MariaDB container starts, but MariaDB takes a while set itself up before it can accept connections; as a result, Snipe-IT will fail to initialize the database. Just wait about 30 seconds after deploying the stack, then restart the Snipe-IT container to initialize the database. You will know it worked if you see notes about data being `Migrated`.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
snipeit:
|
||||
image: snipe/snipe-it
|
||||
ports:
|
||||
- "8000:80"
|
||||
depends_on:
|
||||
- db
|
||||
env_file:
|
||||
- stack.env
|
||||
volumes:
|
||||
- ${DATA_LOCATION}/snipeit:/var/lib/snipeit
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.50
|
||||
|
||||
redis:
|
||||
image: redis:6.2.5-buster
|
||||
ports:
|
||||
- "6379:6379"
|
||||
env_file:
|
||||
- stack.env
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.51
|
||||
|
||||
db:
|
||||
image: mariadb:10.5
|
||||
ports:
|
||||
- "3306:3306"
|
||||
env_file:
|
||||
- stack.env
|
||||
volumes:
|
||||
- ${DATA_LOCATION}/mariadb:/var/lib/mysql
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.52
|
||||
|
||||
mailhog:
|
||||
image: mailhog/mailhog:v1.0.1
|
||||
ports:
|
||||
# - 1025:1025
|
||||
- "8025:8025"
|
||||
env_file:
|
||||
- stack.env
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.53
|
||||
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
APP_ENV=production
|
||||
APP_DEBUG=false
|
||||
APP_KEY=base64:SomethingSecure
|
||||
APP_URL=https://assets.bunny-lab.io
|
||||
APP_TIMEZONE='America/Denver'
|
||||
APP_LOCALE=en
|
||||
MAX_RESULTS=500
|
||||
PRIVATE_FILESYSTEM_DISK=local
|
||||
PUBLIC_FILESYSTEM_DISK=local_public
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=db
|
||||
DB_DATABASE=snipedb
|
||||
DB_USERNAME=snipeuser
|
||||
DB_PASSWORD=SomethingSecure
|
||||
DB_PREFIX=null
|
||||
DB_DUMP_PATH='/usr/bin'
|
||||
DB_CHARSET=utf8mb4
|
||||
DB_COLLATION=utf8mb4_unicode_ci
|
||||
IMAGE_LIB=gd
|
||||
MYSQL_DATABASE=snipedb
|
||||
MYSQL_USER=snipeuser
|
||||
MYSQL_PASSWORD=SomethingSecure
|
||||
MYSQL_ROOT_PASSWORD=SomethingSecure
|
||||
REDIS_HOST=redis
|
||||
REDIS_PASSWORD=SomethingSecure
|
||||
REDIS_PORT=6379
|
||||
MAIL_DRIVER=smtp
|
||||
MAIL_HOST=mail.deeptree.tech
|
||||
MAIL_PORT=587
|
||||
MAIL_USERNAME=assets@bunny-lab.io
|
||||
MAIL_PASSWORD=SomethingSecure
|
||||
MAIL_ENCRYPTION=starttls
|
||||
MAIL_FROM_ADDR=assets@bunny-lab.io
|
||||
MAIL_FROM_NAME='Bunny Lab Asset Management'
|
||||
MAIL_REPLYTO_ADDR=assets@bunny-lab.io
|
||||
MAIL_REPLYTO_NAME='Bunny Lab Asset Management'
|
||||
MAIL_AUTO_EMBED_METHOD='attachment'
|
||||
DATA_LOCATION=/srv/containers/snipe-it
|
||||
APP_TRUSTED_PROXIES=192.168.5.29
|
||||
```
|
111
Container Documentation/Docker/Docker Compose/Traefik.md
Normal file
111
Container Documentation/Docker/Docker Compose/Traefik.md
Normal file
@ -0,0 +1,111 @@
|
||||
**Purpose**: Deploy a Traefik Reverse Proxy
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "3.3"
|
||||
services:
|
||||
traefik:
|
||||
image: "traefik:latest"
|
||||
restart: always
|
||||
container_name: "traefik"
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65536
|
||||
hard: 65536
|
||||
labels:
|
||||
- "traefik.http.routers.traefik-proxy.middlewares=my-buffering"
|
||||
- "traefik.http.middlewares.my-buffering.buffering.maxRequestBodyBytes=104857600"
|
||||
- "traefik.http.middlewares.my-buffering.buffering.maxResponseBodyBytes=104857600"
|
||||
- "traefik.http.middlewares.my-buffering.buffering.memRequestBodyBytes=2097152"
|
||||
- "traefik.http.middlewares.my-buffering.buffering.memResponseBodyBytes=2097152"
|
||||
- "traefik.http.middlewares.my-buffering.buffering.retryExpression=IsNetworkError() && Attempts() <= 2"
|
||||
command:
|
||||
# Globals
|
||||
- "--log.level=ERROR"
|
||||
- "--api.insecure=true"
|
||||
- "--global.sendAnonymousUsage=false"
|
||||
# Docker
|
||||
# - "--providers.docker=true"
|
||||
# - "--providers.docker.exposedbydefault=false"
|
||||
# File Provider
|
||||
- "--providers.file.directory=/etc/traefik/dynamic"
|
||||
- "--providers.file.watch=true"
|
||||
# Entrypoints
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
- "--entrypoints.web.http.redirections.entrypoint.to=websecure" #Redirect HTTP to HTTPS
|
||||
- "--entrypoints.web.http.redirections.entrypoint.scheme=https" #Redirect HTTP to HTTPS
|
||||
- "--entrypoints.web.http.redirections.entrypoint.permanent=true" #Redirect HTTP to HTTPS
|
||||
# LetsEncrypt
|
||||
# - "--certificatesresolvers.myresolver.acme.tlschallenge=true"
|
||||
- "--certificatesresolvers.myresolver.acme.dnschallenge=true" #TEMPORARY CHANGE
|
||||
- "--certificatesresolvers.myresolver.acme.dnschallenge.provider=cloudflare" #TEMPORARY CHANGE
|
||||
- "--certificatesresolvers.myresolver.acme.email=cyberstrawberry101@gmail.com"
|
||||
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
|
||||
# labels:
|
||||
# # API
|
||||
# - "traefik.enable=true"
|
||||
# # Global http --> https
|
||||
# - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:[a-z-.]+}`)"
|
||||
# - "traefik.http.routers.http-catchall.entrypoints=web"
|
||||
# - "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
|
||||
# - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- "/srv/containers/traefik/letsencrypt:/letsencrypt"
|
||||
- "/srv/containers/traefik/config:/etc/traefik"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- "/srv/containers/traefik/cloudflare:/cloudflare"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.29
|
||||
environment:
|
||||
- CF_API_EMAIL=cyberstrawberry101@gmail.com
|
||||
- CF_API_KEY=REDACTED
|
||||
extra_hosts:
|
||||
- "flask.cyberstrawberry.local:192.168.3.21"
|
||||
- "searx.cyberstrawberry.local:192.168.3.21"
|
||||
- "heimdall.cyberstrawberry.local:192.168.3.21"
|
||||
- "status.cyberstrawberry.local:192.168.3.21"
|
||||
- "rancher.cyberstrawberry.local:192.168.3.21"
|
||||
- "trilium.blockaderunners.local:192.168.3.21"
|
||||
- "pw.cyberstrawberry.local:192.168.3.22"
|
||||
- "remote.cyberstrawberry.local:192.168.5.43"
|
||||
- "cluster-cloud.cyberstrawberry.local:192.168.3.22"
|
||||
- "searx.blockaderunners.local:192.168.3.22"
|
||||
- "searx.deeptree-labs.local:192.168.3.22"
|
||||
- "cyberstrawberry.local:192.168.3.22"
|
||||
- "storage.cyberstrawberry.local:192.168.3.22"
|
||||
- "cloud.cyberstrawberry.local:192.168.5.146"
|
||||
- "cloud.blockaderunners.local:192.168.5.90"
|
||||
- "docs.blockaderunners.local:192.168.5.212"
|
||||
- "status.blockaderunners.local:192.168.5.13"
|
||||
- "blockaderunners.local:192.168.5.219"
|
||||
- "office.cyberstrawberry.local:192.168.5.143"
|
||||
- "git.deeptree.local:192.168.5.166"
|
||||
- "pw.deeptree.local:192.168.5.170"
|
||||
- "status.deeptree.local:192.168.5.211"
|
||||
- "temp.cyberstrawberry.local:192.168.5.197"
|
||||
- "drop.cyberstrawberry.local:192.168.5.14"
|
||||
- "vault.cyberstrawberry.local:192.168.3.22"
|
||||
- "bitwarden.cyberstrawberry.local:192.168.5.141"
|
||||
- "chat.cyberstrawberry.local:192.168.3.22"
|
||||
- "trilium.cyberstrawberry.local:192.168.3.22"
|
||||
- "node-red.cyberstrawberry.local:192.168.3.21"
|
||||
- "homelab.cyberstrawberry.local:192.168.3.22"
|
||||
- "awx.cyberstrawberry.local:192.168.3.21"
|
||||
- "git.cyberstrawberry.local:192.168.3.21"
|
||||
- "lab.cyberstrawberry.local:192.168.5.44"
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
@ -0,0 +1,41 @@
|
||||
**Purpose**: The UniFi® Controller is a wireless network management software solution from Ubiquiti Networks™. It allows you to manage multiple wireless networks using a web browser.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: "2.1"
|
||||
services:
|
||||
controller:
|
||||
image: lscr.io/linuxserver/unifi-controller:latest
|
||||
container_name: controller
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
#- MEM_LIMIT=1024 #optional
|
||||
#- MEM_STARTUP=1024 #optional
|
||||
volumes:
|
||||
- /srv/containers/unifi-controller:/config
|
||||
ports:
|
||||
- 8443:8443
|
||||
- 3478:3478/udp
|
||||
- 10001:10001/udp
|
||||
- 8080:8080
|
||||
- 1900:1900/udp #optional
|
||||
- 8843:8843 #optional
|
||||
- 8880:8880 #optional
|
||||
- 6789:6789 #optional
|
||||
- 5514:5514/udp #optional
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.140
|
||||
# ipv4_address: 192.168.3.140
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
33
Container Documentation/Docker/Docker Compose/UptimeKuma.md
Normal file
33
Container Documentation/Docker/Docker Compose/UptimeKuma.md
Normal file
@ -0,0 +1,33 @@
|
||||
**Purpose**: Deploy Uptime Kuma uptime monitor to monitor services in the homelab and send notifications to various services.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3'
|
||||
services:
|
||||
uptimekuma:
|
||||
image: louislam/uptime-kuma
|
||||
ports:
|
||||
- 3001:3001
|
||||
volumes:
|
||||
- /mnt/uptimekuma:/app/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
# Allow status page to exist within an iframe
|
||||
- UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=1
|
||||
restart: always
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.uptime-kuma.rule=Host(`status.cyberstrawberry.net`)"
|
||||
- "traefik.http.routers.uptime-kuma.entrypoints=websecure"
|
||||
- "traefik.http.routers.uptime-kuma.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.uptime-kuma.loadbalancer.server.port=3001"
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.211
|
||||
networks:
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
43
Container Documentation/Docker/Docker Compose/VaultWarden.md
Normal file
43
Container Documentation/Docker/Docker Compose/VaultWarden.md
Normal file
@ -0,0 +1,43 @@
|
||||
**Purpose**: Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
---
|
||||
version: "2.1"
|
||||
services:
|
||||
vaultwarden:
|
||||
image: vaultwarden/server:latest
|
||||
container_name: vaultwarden
|
||||
environment:
|
||||
- TZ=America/Denver
|
||||
- INVITATIONS_ALLOWED=false
|
||||
- SIGNUPS_ALLOWED=false
|
||||
- WEBSOCKET_ENABLED=false
|
||||
- ADMIN_TOKEN=REDACTED #PUT A REALLY REALLY REALLY SECURE PASSWORD HERE
|
||||
volumes:
|
||||
- /srv/containers/vaultwarden:/data
|
||||
ports:
|
||||
- 80:80
|
||||
restart: always
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.15
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.vaultwarden.rule=Host(`vault.grymmweeper.com`)"
|
||||
# - "traefik.http.routers.vaultwarden.entrypoints=web"
|
||||
# - "traefik.http.routers.vaultwarden.tls.certresolver=letsencrypt"
|
||||
# - "traefik.http.services.vaultwarden.loadbalancer.server.port=80"
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
:::caution
|
||||
It is **CRITICAL** that you never share the `ADMIN_TOKEN` with anyone. It allows you to log into the instance at https://vault.example.com/admin to add users, delete users, make changes system wide, etc.
|
||||
:::
|
||||
|
||||
```jsx title=".env"
|
||||
Not Applicable
|
||||
```
|
49
Container Documentation/Docker/Docker Compose/Wordpress.md
Normal file
49
Container Documentation/Docker/Docker Compose/Wordpress.md
Normal file
@ -0,0 +1,49 @@
|
||||
**Purpose**: At its core, WordPress is the simplest, most popular way to create your own website or blog. In fact, WordPress powers over 43.3% of all the websites on the Internet. Yes – more than one in four websites that you visit are likely powered by WordPress.
|
||||
|
||||
```jsx title="docker-compose.yml"
|
||||
version: '3.7'
|
||||
services:
|
||||
wordpress:
|
||||
image: wordpress:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: 192.168.5.216
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
volumes:
|
||||
- /srv/Containers/WordPress/Server:/var/www/html
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.217
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: lscr.io/linuxserver/mariadb
|
||||
restart: always
|
||||
ports:
|
||||
- 3306:3306
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wordpress
|
||||
REMOTE_SQL: http://URL1/your.sql,https://URL2/your.sql
|
||||
volumes:
|
||||
- /srv/Containers/WordPress/DB:/config
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.216
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: docker_network
|
||||
docker_network:
|
||||
external: true
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
WORDPRESS_DB_PASSWORD=SecurePassword101
|
||||
MYSQL_ROOT_PASSWORD=SecurePassword202
|
||||
```
|
5
Container Documentation/Docker/Docker Networking.md
Normal file
5
Container Documentation/Docker/Docker Networking.md
Normal file
@ -0,0 +1,5 @@
|
||||
### Configure Docker Network
|
||||
We want to use a dedicated subnet / network specifically for containers, so they don't trample over the **SERVER** and **LAN** networks. If you are unsure of the name of the network adapter, in this case `eth0`, just type `ipaddr` in the terminal to list the network interfaces to locate it.
|
||||
```
|
||||
docker network create -d macvlan --subnet=192.168.5.0/24 --gateway=192.168.5.1 -o parent=eth0 docker_network
|
||||
```
|
187
Container Documentation/Kubernetes/Deploy Generic K8S.md
Normal file
187
Container Documentation/Kubernetes/Deploy Generic K8S.md
Normal file
@ -0,0 +1,187 @@
|
||||
# Deploy Generic Kubernetes
|
||||
The instructions outlined below assume you are deploying the environment using Ansible Playbooks either via Ansible's CLI or AWX.
|
||||
|
||||
### Deploy K8S User
|
||||
```jsx title="01-deploy-k8s-user.yml"
|
||||
- hosts: 'controller-nodes, worker-nodes'
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: create the k8sadmin user account
|
||||
user: name=k8sadmin append=yes state=present createhome=yes shell=/bin/bash
|
||||
|
||||
- name: allow 'k8sadmin' to use sudo without needing a password
|
||||
lineinfile:
|
||||
dest: /etc/sudoers
|
||||
line: 'k8sadmin ALL=(ALL) NOPASSWD: ALL'
|
||||
validate: 'visudo -cf %s'
|
||||
|
||||
- name: set up authorized keys for the k8sadmin user
|
||||
authorized_key: user=k8sadmin key="{{item}}"
|
||||
with_file:
|
||||
- ~/.ssh/id_rsa.pub
|
||||
```
|
||||
|
||||
### Install K8S
|
||||
```jsx title="02-install-k8s.yml"
|
||||
---
|
||||
- hosts: "controller-nodes, worker-nodes"
|
||||
remote_user: nicole
|
||||
become: yes
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
gather_facts: yes
|
||||
connection: ssh
|
||||
|
||||
tasks:
|
||||
- name: Create containerd config file
|
||||
file:
|
||||
path: "/etc/modules-load.d/containerd.conf"
|
||||
state: "touch"
|
||||
|
||||
- name: Add conf for containerd
|
||||
blockinfile:
|
||||
path: "/etc/modules-load.d/containerd.conf"
|
||||
block: |
|
||||
overlay
|
||||
br_netfilter
|
||||
|
||||
- name: modprobe
|
||||
shell: |
|
||||
sudo modprobe overlay
|
||||
sudo modprobe br_netfilter
|
||||
|
||||
|
||||
- name: Set system configurations for Kubernetes networking
|
||||
file:
|
||||
path: "/etc/sysctl.d/99-kubernetes-cri.conf"
|
||||
state: "touch"
|
||||
|
||||
- name: Add conf for containerd
|
||||
blockinfile:
|
||||
path: "/etc/sysctl.d/99-kubernetes-cri.conf"
|
||||
block: |
|
||||
net.bridge.bridge-nf-call-iptables = 1
|
||||
net.ipv4.ip_forward = 1
|
||||
net.bridge.bridge-nf-call-ip6tables = 1
|
||||
|
||||
- name: Apply new settings
|
||||
command: sudo sysctl --system
|
||||
|
||||
- name: install containerd
|
||||
shell: |
|
||||
sudo apt-get update && sudo apt-get install -y containerd
|
||||
sudo mkdir -p /etc/containerd
|
||||
sudo containerd config default | sudo tee /etc/containerd/config.toml
|
||||
sudo systemctl restart containerd
|
||||
|
||||
- name: disable swap
|
||||
shell: |
|
||||
sudo swapoff -a
|
||||
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
|
||||
|
||||
- name: install and configure dependencies
|
||||
shell: |
|
||||
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
|
||||
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
|
||||
|
||||
- name: Create kubernetes repo file
|
||||
file:
|
||||
path: "/etc/apt/sources.list.d/kubernetes.list"
|
||||
state: "touch"
|
||||
|
||||
- name: Add K8s Source
|
||||
blockinfile:
|
||||
path: "/etc/apt/sources.list.d/kubernetes.list"
|
||||
block: |
|
||||
deb https://apt.kubernetes.io/ kubernetes-xenial main
|
||||
|
||||
- name: Install Kubernetes
|
||||
shell: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y kubelet=1.20.1-00 kubeadm=1.20.1-00 kubectl=1.20.1-00
|
||||
sudo apt-mark hold kubelet kubeadm kubectl
|
||||
```
|
||||
|
||||
### Configure ControlPlanes
|
||||
```jsx title="03-configure-controllers.yml"
|
||||
- hosts: controller-nodes
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Initialize the K8S Cluster
|
||||
shell: kubeadm init --pod-network-cidr=10.244.0.0/16
|
||||
args:
|
||||
chdir: $HOME
|
||||
creates: cluster_initialized.txt
|
||||
|
||||
- name: Create .kube directory
|
||||
become: yes
|
||||
become_user: k8sadmin
|
||||
file:
|
||||
path: /home/k8sadmin/.kube
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Copy admin.conf to user's kube config
|
||||
copy:
|
||||
src: /etc/kubernetes/admin.conf
|
||||
dest: /home/k8sadmin/.kube/config
|
||||
remote_src: yes
|
||||
owner: k8sadmin
|
||||
|
||||
- name: Install the Pod Network
|
||||
become: yes
|
||||
become_user: k8sadmin
|
||||
shell: kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
|
||||
args:
|
||||
chdir: $HOME
|
||||
|
||||
- name: Get the token for joining the worker nodes
|
||||
become: yes
|
||||
become_user: k8sadmin
|
||||
shell: kubeadm token create --print-join-command
|
||||
register: kubernetes_join_command
|
||||
|
||||
- name: Output Join Command to the Screen
|
||||
debug:
|
||||
msg: "{{ kubernetes_join_command.stdout }}"
|
||||
|
||||
- name: Copy join command to local file.
|
||||
become: yes
|
||||
local_action: copy content="{{ kubernetes_join_command.stdout_lines[0] }}" dest="/tmp/kubernetes_join_command" mode=0777
|
||||
```
|
||||
|
||||
### Join Worker Node(s)
|
||||
```jsx title="04-join-worker-nodes.yml"
|
||||
- hosts: worker-nodes
|
||||
become: yes
|
||||
gather_facts: yes
|
||||
|
||||
tasks:
|
||||
- name: Copy join command from Ansible host to the worker nodes.
|
||||
become: yes
|
||||
copy:
|
||||
src: /tmp/kubernetes_join_command
|
||||
dest: /tmp/kubernetes_join_command
|
||||
mode: 0777
|
||||
|
||||
- name: Join the Worker nodes to the cluster.
|
||||
become: yes
|
||||
command: sh /tmp/kubernetes_join_command
|
||||
register: joined_or_not
|
||||
```
|
||||
|
||||
### Host Inventory File Template
|
||||
```jsx title="hosts"
|
||||
[controller-nodes]
|
||||
k8s-ctrlr-01 ansible_host=192.168.3.6 ansible_user=nicole
|
||||
|
||||
[worker-nodes]
|
||||
k8s-node-01 ansible_host=192.168.3.4 ansible_user=nicole
|
||||
k8s-node-02 ansible_host=192.168.3.5 ansible_user=nicole
|
||||
|
||||
[all:vars]
|
||||
ansible_become_user=root
|
||||
ansible_become_method=sudo
|
||||
```
|
140
Container Documentation/Kubernetes/Minikube/Ansible Minikube.md
Normal file
140
Container Documentation/Kubernetes/Minikube/Ansible Minikube.md
Normal file
@ -0,0 +1,140 @@
|
||||
# AWX Operator on Minikube Cluster
|
||||
Minikube Cluster based deployment of Ansible AWX. (Ansible Tower)
|
||||
:::note Prerequisites
|
||||
This document assumes you are running **Ubuntu Server 20.04** or later.
|
||||
:::
|
||||
|
||||
## Install Minikube Cluster
|
||||
### Update the Ubuntu Server
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
sudo apt autoremove -y
|
||||
```
|
||||
|
||||
### Download and Install Minikube (Ubuntu Server)
|
||||
Additional Documentation: https://minikube.sigs.k8s.io/docs/start/
|
||||
```
|
||||
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
|
||||
sudo dpkg -i minikube_latest_amd64.deb
|
||||
|
||||
# Download Docker and Common Tools
|
||||
sudo apt install docker.io nfs-common iptables nano htop -y
|
||||
|
||||
# Configure Docker User
|
||||
sudo usermod -aG docker nicole
|
||||
```
|
||||
:::caution
|
||||
Be sure to change the `nicole` username in the `sudo usermod -aG docker nicole` command to whatever your local username is.
|
||||
:::
|
||||
### Fully Logout then sign back in to the server
|
||||
```
|
||||
exit
|
||||
```
|
||||
### Validate that permissions allow you to run docker commands while non-root
|
||||
```
|
||||
docker ps
|
||||
```
|
||||
|
||||
### Initialize Minikube Cluster
|
||||
Additional Documentation: https://github.com/ansible/awx-operator
|
||||
```
|
||||
minikube start --driver=docker
|
||||
minikube kubectl -- get nodes
|
||||
minikube kubectl -- get pods -A
|
||||
```
|
||||
|
||||
### Make sure Minikube Cluster Automatically Starts on Boot
|
||||
```jsx title="/etc/systemd/system/minikube.service"
|
||||
[Unit]
|
||||
Description=Minikube service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
User=nicole
|
||||
ExecStart=/usr/bin/minikube start --driver=docker
|
||||
ExecStop=/usr/bin/minikube stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
:::caution
|
||||
Be sure to change the `nicole` username in the `User=nicole` line of the config to whatever your local username is.
|
||||
:::
|
||||
:::info
|
||||
You can remove the `--addons=ingress` if you plan on running AWX behind an existing reverse proxy using a "**NodePort**" connection.
|
||||
:::
|
||||
### Restart Service Daemon and Enable/Start Minikube Automatic Startup
|
||||
```
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable minikube
|
||||
sudo systemctl start minikube
|
||||
```
|
||||
|
||||
### Make command alias for `kubectl`
|
||||
Be sure to add the following to the bottom of your existing profile file noted below.
|
||||
```jsx title="~/.bashrc"
|
||||
...
|
||||
alias kubectl="minikube kubectl --"
|
||||
```
|
||||
:::tip
|
||||
If this is a virtual machine, now would be the best time to take a checkpoint / snapshot of the VM before moving forward, in case you need to perform rollbacks of the server(s) if you accidentally misconfigure something.
|
||||
:::
|
||||
|
||||
## Make AWX Operator Kustomization File:
|
||||
Find the latest tag version here: https://github.com/ansible/awx-operator/releases
|
||||
```jsx title="kustomization.yml"
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- github.com/ansible/awx-operator/config/default?ref=2.4.0
|
||||
- awx.yml
|
||||
images:
|
||||
- name: quay.io/ansible/awx-operator
|
||||
newTag: 2.4.0
|
||||
namespace: awx
|
||||
```
|
||||
```jsx title="awx.yml"
|
||||
apiVersion: awx.ansible.com/v1beta1
|
||||
kind: AWX
|
||||
metadata:
|
||||
name: awx
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: awx-service
|
||||
namespace: awx
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
nodePort: 30080 # Choose an available port in the range of 30000-32767
|
||||
selector:
|
||||
app.kubernetes.io/name: awx-web
|
||||
```
|
||||
### Apply Configuration File
|
||||
Run from the same directory as the `awx-operator.yaml` file.
|
||||
```
|
||||
kubectl apply -k .
|
||||
```
|
||||
:::info
|
||||
If you get any errors, especially ones relating to "CRD"s, wait 30 seconds, and try re-running the `kubectl apply -k .` command to fully apply the `awx.yml` configuration file to bootstrap the awx deployment.
|
||||
:::
|
||||
|
||||
### View Logs / Track Deployment Progress
|
||||
```
|
||||
kubectl logs -n awx awx-operator-controller-manager -c awx-manager
|
||||
```
|
||||
### Get AWX WebUI Address
|
||||
```
|
||||
minikube service -n awx awx-service --url
|
||||
```
|
||||
### Get WebUI Password:
|
||||
```
|
||||
kubectl get secret awx-demo-admin-password -o jsonpath="{.data.password}" | base64 --decode ; echo
|
||||
```
|
@ -0,0 +1,2 @@
|
||||
# Placeholder
|
||||
Placeholder
|
@ -0,0 +1,32 @@
|
||||
# 1-provision-vm.yml
|
||||
```jsx title="1-provision-vm.yml"
|
||||
---
|
||||
- name: Ubuntu Server-Based Cluster Deployment
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Fetch updates
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Install packages
|
||||
apt:
|
||||
name:
|
||||
- nfs-common
|
||||
- iptables
|
||||
- nano
|
||||
- htop
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Upgrade all packages
|
||||
apt:
|
||||
upgrade: dist
|
||||
|
||||
- name: Autoremove unused packages
|
||||
apt:
|
||||
autoremove: yes
|
||||
|
||||
- name: Reboot the VM
|
||||
reboot:
|
||||
```
|
@ -0,0 +1,48 @@
|
||||
# 2-create-initial-controlplane.yml
|
||||
|
||||
```jsx title="2-create-initial-controlplane.yml"
|
||||
---
|
||||
- name: Deploy Rancher on a Kubernetes cluster
|
||||
hosts: your_target_host
|
||||
become: true
|
||||
gather_facts: yes
|
||||
tasks:
|
||||
- name: Download and install the RKE2 server deployment script
|
||||
ansible.builtin.shell: |
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=server sh -
|
||||
|
||||
- name: Enable and start the RKE2 server service
|
||||
ansible.builtin.systemd:
|
||||
name: rke2-server
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Create symlink for kubectl
|
||||
ansible.builtin.command: |
|
||||
ln -s $(find /var/lib/rancher/rke2/data/ -name kubectl) /usr/local/bin/kubectl
|
||||
|
||||
- name: Temporarily export the Kubeconfig
|
||||
ansible.builtin.shell: |
|
||||
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
|
||||
|
||||
- name: Install Helm
|
||||
ansible.builtin.shell: |
|
||||
curl -#L https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
|
||||
- name: Add Helm repos for Rancher and Jetstack
|
||||
ansible.builtin.shell: |
|
||||
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
|
||||
helm repo add jetstack https://charts.jetstack.io
|
||||
|
||||
- name: Install Cert-Manager CRDs
|
||||
ansible.builtin.shell: |
|
||||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.6.1/cert-manager.crds.yaml
|
||||
|
||||
- name: Install Jetstack cert-manager via Helm
|
||||
ansible.builtin.shell: |
|
||||
helm upgrade -i cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace
|
||||
|
||||
- name: Install Rancher via Helm
|
||||
ansible.builtin.shell: |
|
||||
helm upgrade -i rancher rancher-latest/rancher --create-namespace --namespace cattle-system --set hostname=rancher.cyberstrawberry.net --set bootstrapPassword=bootStrapAllTheThings --set replicas=1
|
||||
```
|
@ -0,0 +1,48 @@
|
||||
# 3A-deploy-additional-controlplane.yml
|
||||
|
||||
```jsx title="3A-deploy-additional-controlplane.yml"
|
||||
---
|
||||
- name: RKE2 Kubernetes Cluster Deployment
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Download and install RKE2 server
|
||||
shell: "curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=server sh -"
|
||||
|
||||
- name: Symlink the Kubectl Management Command
|
||||
command: "ln -s {{ item }} /usr/local/bin/kubectl"
|
||||
args:
|
||||
creates: "/usr/local/bin/kubectl"
|
||||
with_items:
|
||||
- "{{ find_kubectl.stdout }}"
|
||||
vars:
|
||||
find_kubectl:
|
||||
cmd: "find /var/lib/rancher/rke2/data/ -name kubectl"
|
||||
|
||||
- name: Create Rancher-Kubernetes-specific config directory
|
||||
file:
|
||||
path: "/etc/rancher/rke2/"
|
||||
state: directory
|
||||
|
||||
- name: Inject IP of Primary Cluster Host (First Node) into Config File
|
||||
lineinfile:
|
||||
path: "/etc/rancher/rke2/config.yaml"
|
||||
line: "server: https://192.168.3.21:9345"
|
||||
|
||||
- name: Get the node token from the first node in the cluster
|
||||
shell: "cat /var/lib/rancher/rke2/server/node-token"
|
||||
register: node_token
|
||||
run_once: true
|
||||
when: "'first_node' in group_names"
|
||||
|
||||
- name: Inject the Primary Cluster Host trust token into the config file
|
||||
lineinfile:
|
||||
path: "/etc/rancher/rke2/config.yaml"
|
||||
line: "token: {{ node_token.stdout }}"
|
||||
|
||||
- name: Enable and start the RKE2 server service
|
||||
systemd:
|
||||
name: rke2-server.service
|
||||
state: started
|
||||
enabled: yes
|
||||
```
|
@ -0,0 +1,38 @@
|
||||
# 3B-deploy-worker-node.yml
|
||||
|
||||
```jsx title="3B-deploy-worker-node.yml"
|
||||
---
|
||||
- name: RKE2 Kubernetes Worker Node Deployment
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Download and install RKE2 agent
|
||||
shell: "curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=agent sh -"
|
||||
|
||||
- name: Create Rancher-Kubernetes-specific config directory
|
||||
file:
|
||||
path: "/etc/rancher/rke2/"
|
||||
state: directory
|
||||
|
||||
- name: Inject IP of Primary Cluster Host (First Node) into Config File
|
||||
lineinfile:
|
||||
path: "/etc/rancher/rke2/config.yaml"
|
||||
line: "server: https://192.168.3.21:9345"
|
||||
|
||||
- name: Get the node token from the first node in the cluster
|
||||
shell: "cat /var/lib/rancher/rke2/server/node-token"
|
||||
register: node_token
|
||||
run_once: true
|
||||
delegate_to: first_node_host
|
||||
|
||||
- name: Inject the Primary Cluster Host trust token into the config file
|
||||
lineinfile:
|
||||
path: "/etc/rancher/rke2/config.yaml"
|
||||
line: "token: {{ node_token.stdout }}"
|
||||
|
||||
- name: Enable and start the RKE2 agent service
|
||||
systemd:
|
||||
name: rke2-agent.service
|
||||
state: started
|
||||
enabled: yes
|
||||
```
|
@ -0,0 +1,28 @@
|
||||
# WinRM (Kerberos)
|
||||
**Name**: "Kerberos WinRM"
|
||||
|
||||
```jsx title="Input Configuration"
|
||||
fields:
|
||||
- id: username
|
||||
type: string
|
||||
label: Username
|
||||
- id: password
|
||||
type: string
|
||||
label: Password
|
||||
secret: true
|
||||
- id: krb_realm
|
||||
type: string
|
||||
label: Kerberos Realm (Domain)
|
||||
required:
|
||||
- username
|
||||
- password
|
||||
- krb_realm
|
||||
```
|
||||
|
||||
```jsx title="Injector Configuration"
|
||||
extra_vars:
|
||||
ansible_user: '{{ username }}'
|
||||
ansible_password: '{{ password }}'
|
||||
ansible_winrm_transport: kerberos
|
||||
ansible_winrm_kerberos_realm: '{{ krb_realm }}'
|
||||
```
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
# AWX Credential Types
|
||||
When interacting with devices via Ansible Playbooks, you need to provide the playbook with credentials to connect to the device with. Examples are domain credentials for Windows devices, and local sudo user credentials for Linux.
|
||||
|
||||
## Windows-based Credentials
|
||||
### NTLM
|
||||
NTLM-based authentication is not exactly the most secure method of remotely running playbooks on Windows devices, but it is still encrypted using SSL certificates created by the device itself when provisioned correctly to enable WinRM functionality.
|
||||
```jsx title="(NTLM) nicole.rappe@MOONGATE.LOCAL"
|
||||
Credential Type: Machine
|
||||
Username: nicole.rappe@MOONGATE.LOCAL
|
||||
Password: <Encrypted>
|
||||
Privilege Escalation Method: runas
|
||||
Privilege Escalation Username: nicole.rappe@MOONGATE.LOCAL
|
||||
```
|
||||
### Kerberos
|
||||
Kerberos-based authentication is generally considered the most secure method of authentication with Windows devices, but can be trickier to set up since it requires additional setup inside of AWX in the cluster for it to function properly. At this time, there is no working Kerberos documentation.
|
||||
```jsx title="(Kerberos WinRM) nicole.rappe"
|
||||
Credential Type: Kerberos WinRM
|
||||
Username: nicole.rappe
|
||||
Password: <Encrypted>
|
||||
Kerberos Realm (Domain): MOONGATE.LOCAL
|
||||
```
|
||||
## Linux-based Credentials
|
||||
```jsx title="(LINUX) nicole"
|
||||
Credential Type: Machine
|
||||
Username: nicole
|
||||
Password: <Encrypted>
|
||||
Privilege Escalation Method: sudo
|
||||
Privilege Escalation Username: root
|
||||
```
|
||||
|
||||
:::note
|
||||
`WinRM / Kerberos` based credentials do not currently work as-expected. At this time, use either `Linux` or `NTLM` based credentials.
|
||||
:::
|
@ -0,0 +1,39 @@
|
||||
# Host Inventories
|
||||
When you are deploying playbooks, you target hosts that exist in "Inventories". These inventories consist of a list of hosts and their corresponding IP addresses, as well as any host-specific variables that may be necessary to declare to run the playbook.
|
||||
|
||||
```jsx title="(NTLM) MOON-HOST-01"
|
||||
Name: (NTLM) MOON-HOST-01
|
||||
Host(s): MOON-HOST-01 @ 192.168.3.4
|
||||
|
||||
Variables:
|
||||
---
|
||||
ansible_connection: winrm
|
||||
ansible_winrm_kerberos_delegation: false
|
||||
ansible_port: 5986
|
||||
ansible_winrm_transport: ntlm
|
||||
ansible_winrm_server_cert_validation: ignore
|
||||
```
|
||||
|
||||
```jsx title="(NTLM) CyberStrawberry - Windows Hosts"
|
||||
Name: (NTLM) CyberStrawberry - Windows Hosts
|
||||
Host(s): MOON-HOST-01 @ 192.168.3.4
|
||||
Host(s): MOON-HOST-02 @ 192.168.3.5
|
||||
|
||||
Variables:
|
||||
---
|
||||
ansible_connection: winrm
|
||||
ansible_winrm_kerberos_delegation: false
|
||||
ansible_port: 5986
|
||||
ansible_winrm_transport: ntlm
|
||||
ansible_winrm_server_cert_validation: ignore
|
||||
```
|
||||
|
||||
```jsx title="(LINUX) Unsorted Devices"
|
||||
Name: (LINUX) Unsorted Devices
|
||||
Host(s): CLSTR-COMPUTE-01 @ 192.168.3.50
|
||||
Host(s): CLSTR-COMPUTE-02 @ 192.168.3.51
|
||||
|
||||
Variables:
|
||||
---
|
||||
None
|
||||
```
|
@ -0,0 +1,16 @@
|
||||
# AWX Projects
|
||||
When you want to run playbooks on host devices in your inventory files, you need to host the playbooks in a "Project". Projects can be as simple as a connection to Gitea/Github to store playbooks in a repository.
|
||||
|
||||
```jsx title="Ansible Playbooks (Gitea)"
|
||||
Name: Ansible Playbooks (Gitea)
|
||||
Source Control Type: Git
|
||||
Source Control URL: https://git.cyberstrawberry.net/nicole.rappe/ansible.git
|
||||
Source Control Credential: CyberStrawberry Gitea
|
||||
```
|
||||
|
||||
```jsx title="Resources > Credentials > CyberStrawberry Gitea"
|
||||
Name: CyberStrawberry Gitea
|
||||
Credential Type: Source Control
|
||||
Username: nicole.rappe
|
||||
Password: <Encrypted> #If you use MFA on Gitea/Github, use an App Password instead for the project.
|
||||
```
|
@ -0,0 +1,100 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
# Deploy AWX on RKE2 Cluster
|
||||
Deploying a Rancher RKE2 Cluster based Ansible AWX server may be considered overkill for a homelab, however the configuration seen below allows you to scale the needs of the cluster over time and gives you more experience with a more enterprise-ready cluster.
|
||||

|
||||
:::note Prerequisites
|
||||
This document assumes you are running **Ubuntu Server 20.04** or later with at least 8GB of memory and 4 CPU cores.
|
||||
:::
|
||||
## Deploy Rancher RKE2 Cluster
|
||||
You will need to follow the [Rancher RKE2 Cluster Deployment](https://docs.cyberstrawberry.net/Container%20Documentation/Kubernetes/Rancher%20RKE2/Rancher%20RKE2%20Cluster)
|
||||
guide in order to initially set up the cluster itself. After this phase, you can focus on the Ansible AWX-specific aspects of the deployment. If you are only deploying AWX in a small environment, a single ControlPlane node is all you need to set up AWX.
|
||||
:::tip
|
||||
|
||||
If this is a virtual machine, after deploying the RKE2 cluster and validating it functions, now would be the best time to take a checkpoint / snapshot of the VM before moving forward, in case you need to perform rollbacks of the server(s) if you accidentally misconfigure something.
|
||||
:::
|
||||
## Server Configuration
|
||||
The AWX deployment will consist of 3 yaml files that configure the containers for AWX as well as the NGINX ingress networking-side of things. You will need all of them in the same folder for the deployment to be successful. For the purpose of this example, we will put all of them into a folder located at `/awx`.
|
||||
### Make the deployment folder
|
||||
```
|
||||
mkdir -p /awx
|
||||
cd /awx
|
||||
```
|
||||
### Run a command to adjust open file limits in Ubuntu Server (just-in-case)
|
||||
```
|
||||
ulimit -n 4096
|
||||
```
|
||||
### Create the AWX deployment configuration files
|
||||
You will need to create these files all in the same directory using the content of the examples below. Be sure to replace values such as the `spec.host=ansible.cyberstrawberry.net` in the `awx-ingress.yml` file to a hostname you can point a DNS server / record to.
|
||||
```jsx title="nano /awx/kustomization.yml"
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- github.com/ansible/awx-operator/config/default?ref=2.4.0
|
||||
- awx.yml
|
||||
- awx-ingress.yml
|
||||
images:
|
||||
- name: quay.io/ansible/awx-operator
|
||||
newTag: 2.4.0
|
||||
namespace: awx
|
||||
```
|
||||
```jsx title="nano /awx/awx.yml"
|
||||
apiVersion: awx.ansible.com/v1beta1
|
||||
kind: AWX
|
||||
metadata:
|
||||
name: awx
|
||||
spec:
|
||||
service_type: ClusterIP
|
||||
```
|
||||
```jsx title="nano /awx/awx-ingress.yml"
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: awx-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: ansible.cyberstrawberry.net
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: awx-service
|
||||
port:
|
||||
number: 80
|
||||
```
|
||||
## Deploy AWX using Kustomize
|
||||
Now it is time to tell Rancher / Kubernetes to read the configuration files using Kustomize (built-in to newer versions of Kubernetes) to deploy AWX into the cluster. Be sure that you are still in the `/awx` folder before running this command. **Be Patient: ** The AWX deployment process can take a while. Go grab a cup of coffee and use the commands in the [Troubleshooting](https://docs.cyberstrawberry.net/Container%20Documentation/Kubernetes/Rancher%20RKE2/RKE2%20Ansible%20AWX#troubleshooting)
|
||||
section if you want to track the progress more directly.
|
||||
```
|
||||
kubectl apply -k .
|
||||
```
|
||||
:::caution
|
||||
If you get any errors mentioning "**CRD**" in the output, re-run the `kubectl apply -k .` command a second time after waiting about 10 seconds. The second time the error should be gone.
|
||||
:::
|
||||
## Access the WebUI behind Ingress Controller
|
||||
After you have deployed AWX into the cluster, it will not be immediately accessible to the host's network (such as your home computer) unless you set up a DNS record pointing to it. In the example above, you would have an `A` or `CNAME` DNS record pointing to the internal IP address of the Rancher RKE2 Cluster host. The RKE2 Cluster will translate `ansible.cyberstrawberry.net` to the AWX web-service container(s) automatically. SSL certificates are not covered in this documentation, but suffice to say, the can be configured on another reverse proxy such as Traefik or via Cert-Manager / JetStack. The process of setting this up goes outside the scope of this document.
|
||||
- AWX WebUI: https://ansible.cyberstrawberry.net
|
||||
### Retrieving the Auto-Generated Admin Password
|
||||
AWX will generate its own secure password the first time you set up AWX. This password is stored as a *secret* in Kubernetes. You can navigate to the WebUI of Rancher in the RKE2 Cluster as long as you have a DNS record matching the hostname you assigned to Rancher the first time you signed in.
|
||||
- Rancher WebUI: https://awx-cluster.cyberstrawberry.net
|
||||
- Alternatively, you can try running the following command to pull the admin password / secret automatically
|
||||
```
|
||||
kubectl get secret awx-admin-password -o jsonpath="{.data.password}" | base64 --decode ; echo
|
||||
```
|
||||
## Troubleshooting
|
||||
You may wish to want to track the deployment process to verify that it is actually doing something. There are a few Kubernetes commands that can assist with this listed below.
|
||||
### Show the container deployment progress for AWX
|
||||
```
|
||||
kubectl get pods -n awx
|
||||
```
|
||||
### AWX-Manager Deployment Logs
|
||||
You may want to track the internal logs of the `awx-manager` container which is responsible for the majority of the automated deployment of AWX. You can do so by running the command below.
|
||||
```
|
||||
kubectl logs -n awx awx-operator-controller-manager-6c58d59d97-qj2n2 -c awx-manager
|
||||
```
|
||||
:::note
|
||||
The `-6c58d59d97-qj2n2` noted at the end of the Kubernetes "Pod" mentioned in the command above is randomized. You will need to change it based on the name shown when running the `kubectl get pods -n awx` command.
|
||||
:::
|
@ -0,0 +1,21 @@
|
||||
# Templates
|
||||
Templates are basically pre-constructed groups of devices, playbooks, and credentials that perform a specific kind of task against a predefined group of hosts or device inventory.
|
||||
|
||||
```jsx title="Deploy Hyper-V VM"
|
||||
Name: Deploy Hyper-V VM
|
||||
Inventory: (NTLM) MOON-HOST-01
|
||||
Playbook: playbooks/Windows/Hyper-V/Deploy-VM.yml
|
||||
Credentials: (NTLM) nicole.rappe@MOONGATE.local
|
||||
Execution Environment: AWX EE (latest)
|
||||
Project: Ansible Playbooks (Gitea)
|
||||
|
||||
Variables:
|
||||
---
|
||||
random_number: "{{ lookup('password', '/dev/null chars=digits length=4') }}"
|
||||
random_letters: "{{ lookup('password', '/dev/null chars=ascii_uppercase length=4') }}"
|
||||
vm_name: "NEXUS-TEST-{{ random_number }}{{ random_letters }}"
|
||||
vm_memory: "8589934592" #Measured in Bytes (e.g. 8GB)
|
||||
vm_storage: "68719476736" #Measured in Bytes (e.g. 64GB)
|
||||
iso_path: "C:\\ubuntu-22.04-live-server-amd64.iso"
|
||||
vm_folder: "C:\\Virtual Machines\\{{ vm_name_fact }}"
|
||||
```
|
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
@ -0,0 +1,136 @@
|
||||
# Deploy RKE2 Cluster
|
||||
Deploying a Rancher RKE2 Cluster is fairly straightforward. Just run the commands in-order and pay attention to which steps apply to all machines in the cluster, the controlplanes, and the workers.
|
||||
|
||||
!!! note "Prerequisites"
|
||||
This document assumes you are running **Ubuntu Server 20.04** or later.
|
||||
|
||||
## All Cluster Nodes
|
||||
### Run Updates
|
||||
You will need to run these commands on every server that participates in the cluster then perform a reboot of the server **PRIOR** to moving onto the next section.
|
||||
``` sh
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
sudo apt install nfs-common iptables nano htop -y
|
||||
```
|
||||
|
||||
### Reboot the Node
|
||||
``` sh
|
||||
sudo apt autoremove -y
|
||||
sudo reboot
|
||||
```
|
||||
!!! tip
|
||||
If this is a virtual machine, now would be the best time to take a checkpoint / snapshot of the VM before moving forward, in case you need to perform rollbacks of the server(s) if you accidentally misconfigure something.
|
||||
## Initial ControlPlane Node
|
||||
When you are starting a brand new cluster, you need to create what is referred to as the "Initial ControlPlane". This node is responsible for bootstrapping the entire cluster together in the beginning, and will eventually assist in handling container workloads and orchestrating operations in the cluster.
|
||||
!!! warning
|
||||
You only want to follow the instructions for the **initial** controlplane once. Running it on another machine to create additional controlplanes will cause the cluster to try to set up two different clusters, wrecking havok. Instead, follow the instructions in the next section to add redundant controlplanes.
|
||||
|
||||
### Download the Run Server Deployment Script
|
||||
```
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=server sh -
|
||||
```
|
||||
### Enable & Configure Services
|
||||
``` sh
|
||||
# Start and Enable the Kubernetes Service
|
||||
systemctl enable rke2-server.service
|
||||
systemctl start rke2-server.service
|
||||
|
||||
# Symlink the Kubectl Management Command
|
||||
ln -s $(find /var/lib/rancher/rke2/data/ -name kubectl) /usr/local/bin/kubectl
|
||||
|
||||
# Temporarily Export the Kubeconfig to manage the cluster from CLI
|
||||
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
|
||||
|
||||
# Check that the Cluster Node is Running and Ready
|
||||
kubectl get node
|
||||
```
|
||||
### Install Helm, Rancher, CertManager, Jetstack, Rancher, and Longhorn
|
||||
``` sh
|
||||
# Install Helm
|
||||
curl -#L https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
|
||||
# Install Necessary Helm Repositories
|
||||
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
|
||||
helm repo add jetstack https://charts.jetstack.io
|
||||
helm repo add longhorn https://charts.longhorn.io
|
||||
helm repo update
|
||||
|
||||
# Install Cert-Manager via Helm
|
||||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.6.1/cert-manager.crds.yaml
|
||||
|
||||
# Install Jetstack via Helm
|
||||
helm upgrade -i cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace
|
||||
|
||||
# Install Rancher via Helm
|
||||
helm upgrade -i rancher rancher-latest/rancher --create-namespace --namespace cattle-system --set hostname=rancher.cyberstrawberry.net --set bootstrapPassword=bootStrapAllTheThings --set replicas=1
|
||||
|
||||
# Install Longhorn via Helm
|
||||
helm upgrade -i longhorn longhorn/longhorn --namespace longhorn-system --create-namespace
|
||||
```
|
||||
|
||||
!!! note
|
||||
Be sure to write down the "*bootstrapPassword*" variable for when you log into Rancher later. In this example, the password is `bootStrapAllTheThings`.
|
||||
Also be sure to adjust the "*hostname*" variable to reflect the FQDN of the cluster. This is important for the last step where you adjust DNS. The example given is `rancher.cyberstrawberry.net`.
|
||||
|
||||
## Create Additional ControlPlane Node(s)
|
||||
This is the part where you can add additional controlplane nodes to add additional redundancy to the RKE2 Cluster. This is important for high-availability environments.
|
||||
|
||||
### Download the Server Deployment Script
|
||||
``` sh
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=server sh -
|
||||
```
|
||||
### Configure and Connect to Initial ControlPlane Node
|
||||
``` sh
|
||||
# Symlink the Kubectl Management Command
|
||||
ln -s $(find /var/lib/rancher/rke2/data/ -name kubectl) /usr/local/bin/kubectl
|
||||
|
||||
# Manually Create a Rancher-Kubernetes-Specific Config File
|
||||
mkdir -p /etc/rancher/rke2/
|
||||
|
||||
# Inject IP of Initial ControlPlane Node into Config File
|
||||
echo "server: https://192.168.3.21:9345" > /etc/rancher/rke2/config.yaml
|
||||
|
||||
# Inject the Initial ControlPlane Node trust token into the config file
|
||||
# You can get the token by running the following command on the first node in the cluster: `cat /var/lib/rancher/rke2/server/node-token`
|
||||
echo "token: K10aa0632863da4ae4e2ccede0ca6a179f510a0eee0d6d6eb53dca96050048f055e::server:3b130ceebfbb7ed851cd990fe55e6f3a" >> /etc/rancher/rke2/config.yaml
|
||||
|
||||
# Start and Enable the Kubernetes Service
|
||||
systemctl enable rke2-server.service
|
||||
systemctl start rke2-server.service
|
||||
```
|
||||
!!! note
|
||||
Be sure to change the IP address of the initial controlplane node provided in the example above to match your environment.
|
||||
|
||||
## Add Worker Node(s)
|
||||
Worker nodes are the bread-and-butter of a Kubernetes cluster. They handle running container workloads, and acting as storage for the cluster (this can be configured to varying degrees based on your needs).
|
||||
|
||||
### Download the Server Worker Script
|
||||
``` sh
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=agent sh -
|
||||
```
|
||||
### Configure and Connect to RKE2 Cluster
|
||||
``` sh
|
||||
# Manually Create a Rancher-Kubernetes-Specific Config File
|
||||
mkdir -p /etc/rancher/rke2/
|
||||
|
||||
# Inject IP of Initial ControlPlane Node into Config File
|
||||
echo "server: https://192.168.3.21:9345" > /etc/rancher/rke2/config.yaml
|
||||
|
||||
# Inject the Initial ControlPlane Node trust token into the config file
|
||||
# You can get the token by running the following command on the first node in the cluster: `cat /var/lib/rancher/rke2/server/node-token`
|
||||
echo "token: K10aa0632863da4ae4e2ccede0ca6a179f510a0eee0d6d6eb53dca96050048f055e::server:3b130ceebfbb7ed851cd990fe55e6f3a" >> /etc/rancher/rke2/config.yaml
|
||||
|
||||
# Start and Enable the Kubernetes Service**
|
||||
systemctl enable rke2-agent.service
|
||||
systemctl start rke2-agent.service
|
||||
```
|
||||
|
||||
## DNS Server Record
|
||||
You will need to set up some kind of DNS server record to point the FQDN of the cluster (e.g. `rancher.cyberstrawberry.net`) to the IP address of the Initial ControlPlane. This can be achieved in a number of ways, such as editing the Windows `HOSTS` file, Linux's `/etc/resolv.conf` file, a Windows DNS Server "A" Record, or an NGINX/Traefik Reverse Proxy.
|
||||
|
||||
Once you have added the DNS record, you should be able to access the login page for the Rancher RKE2 Kubernetes cluster. Use the `bootstrapPassword` mentioned previously to log in, then change it immediately from the user management area of Rancher.
|
||||
|
||||
| TYPE OF ACCESS | FQDN | IP ADDRESS |
|
||||
| -------------- | ------------------------------------- | ------------ |
|
||||
| HOST FILE | rancher.cyberstrawberry.net | 192.168.3.21 |
|
||||
| REVERSE PROXY | http://rancher.cyberstrawberry.net:80 | 192.168.5.29 |
|
||||
| DNS RECORD | A Record: rancher.cyberstrawberry.net | 192.168.3.21 |
|
31
Container Documentation/Portainer/Deploy Portainer.md
Normal file
31
Container Documentation/Portainer/Deploy Portainer.md
Normal file
@ -0,0 +1,31 @@
|
||||
### Update The Package Manager
|
||||
We need to update the server before installing Docker
|
||||
```jsx title="Ubuntu Server"
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
```
|
||||
```jsx title="Rocky Linux"
|
||||
sudo dnf check-update
|
||||
```
|
||||
|
||||
|
||||
### Deploy Docker
|
||||
Install Docker then deploy Portainer
|
||||
```jsx title="Ubuntu Server"
|
||||
sudo apt install docker.io
|
||||
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/containers/portainer:/data portainer/portainer-ee:latest
|
||||
```
|
||||
```jsx title="Rocky Linux"
|
||||
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
sudo dnf install docker-ce docker-ce-cli containerd.io
|
||||
sudo systemctl start docker
|
||||
sudo systemctl enable docker
|
||||
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/containers/portainer:/data portainer/portainer-ee:latest
|
||||
```
|
||||
|
||||
|
||||
### Configure Docker Network
|
||||
We want to use a dedicated subnet / network specifically for containers, so they don't trample over the **SERVER** and **LAN** networks. If you are unsure of the name of the network adapter, in this case `eth0`, just type `ipaddr` in the terminal to list the network interfaces to locate it.
|
||||
```
|
||||
docker network create -d macvlan --subnet=192.168.5.0/24 --gateway=192.168.5.1 -o parent=eth0 docker_network
|
||||
```
|
75
General Scripts/Bash/Git Repo Updater.md
Normal file
75
General Scripts/Bash/Git Repo Updater.md
Normal file
@ -0,0 +1,75 @@
|
||||
**Purpose**: This script runs on a cronjob and automatically pulls down changes from a git repository somewhere (such as Gitea) and copies the changes to a specific directory within the server, such as for [Docusaurus](https://docs.cyberstrawberry.net/Container%20Documentation/Docker/Docker%20Compose/Docusaurus). This can be extremely useful for other things like dynamically updating an [NGINX](https://docs.cyberstrawberry.net/Container%20Documentation/Docker/Docker%20Compose/NGINX) website from a git repository as well.
|
||||
|
||||
# Create the Bash script
|
||||
```
|
||||
mkdir -p ~/Repo_Watcher
|
||||
cd ~/Repo_Watcher
|
||||
touch repo_watcher.sh
|
||||
chmod +x repo_watcher.sh
|
||||
nano repo_watcher.sh
|
||||
```
|
||||
### Populate the bash script
|
||||
Be sure to substitute the values for where you are running the script from and storing the repository data, as this is used as a sort of "cache" on the server running the script and saves bandwidth, and helps keep the script generalized.
|
||||
```jsx title="repo_watcher.sh"
|
||||
# Navigate to the watcher directory, this is where you will store a repo and watch it for changes
|
||||
cd /home/nicole/Repo_Watcher/traefik-config
|
||||
|
||||
# Fetch the latest changes from remote without applying them
|
||||
git fetch origin main
|
||||
|
||||
# Check if the local repository is behind the remote
|
||||
LOCAL=$(git rev-parse @)
|
||||
REMOTE=$(git rev-parse @{u})
|
||||
BASE=$(git merge-base @ @{u})
|
||||
|
||||
if [ $LOCAL = $REMOTE ]; then
|
||||
echo "Up-to-date"
|
||||
elif [ $LOCAL = $BASE ]; then
|
||||
echo "Need to pull"
|
||||
git pull origin main
|
||||
rsync -av --delete /home/nicole/Repo_Watcher/traefik-config/dynamic-config.yml /srv/containers/traefik/config/dynamic/dynamic-config.yml
|
||||
curl -d "Traefik Config Pulled from Gitea" https://ntfy.cyberstrawberry.net/d097b0ee-985d-4d3a-985f-58f99532e019
|
||||
elif [ $REMOTE = $BASE ]; then
|
||||
echo "Need to push"
|
||||
else
|
||||
echo "Data diverged"
|
||||
fi
|
||||
```
|
||||
### Pull the Repository Once
|
||||
```
|
||||
# Store the GitHub credentials for later use when querying the repository for changes and pulling
|
||||
cd ~/Repo_Watcher
|
||||
git config --global credential.helper store
|
||||
git clone https://git.cyberstrawberry.net/cyberstrawberry/traefik-config.git
|
||||
# Enter your username and password if prompted.
|
||||
```
|
||||
### Configure Crontab
|
||||
You will need to set up a crontab to ensure that the script runs on a schedule to check for updates and push them into whatever server you are operating.
|
||||
```
|
||||
# Download Updates and Install Cron and Rsync (If you are using an "Ubuntu Minimal" Install)
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
sudo apt install cron rsync
|
||||
sudo systemctl enable cron
|
||||
|
||||
# Make sure cron is running
|
||||
sudo systemctl status cron
|
||||
|
||||
# Configure Cronjob
|
||||
sudo crontab -e
|
||||
```
|
||||
|
||||
```jsx title="sudo crontab -e"
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
# | | .---------- day of month (1 - 31)
|
||||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * * command to be executed
|
||||
* * * * * bash /home/nicole/Repo_Watcher/repo_watcher.sh && chown -R nicole:nicole /srv/containers/traefik/config/dynamic/dynamic-config.yml
|
||||
```
|
||||
|
||||
:::caution
|
||||
The moment you save the crontab file, it will start running the script every minute. You need to be careful to test the script's functionality prior to scheduling it to automatically run to prevent unintended consequences.
|
||||
:::
|
3
General Scripts/Batch/placeholder.md
Normal file
3
General Scripts/Batch/placeholder.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Overview
|
||||
### Purpose
|
||||
Placeholder
|
3
General Scripts/Powershell/placeholder.md
Normal file
3
General Scripts/Powershell/placeholder.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Overview
|
||||
### Purpose
|
||||
Placeholder
|
16
Homelab Networking/20GbE Cluster Networking.md
Normal file
16
Homelab Networking/20GbE Cluster Networking.md
Normal file
@ -0,0 +1,16 @@
|
||||
### IP Addresses
|
||||
Documented IP addresses / MAC addresses of physical servers, containers, virtual machines, and IoT devices on the homelab network.
|
||||
|
||||
## Subnets
|
||||
### SERVER Network (192.168.3.0/24)
|
||||
|
||||
| **Hostname / Description** | **Network Interface(s)** | **IP Address** | **Status** | Link Speed |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| MOON-HOST-01 | moon-host-01-nic1 | 192.168.102.10 | Active | 10GbE Full Duplex |
|
||||
| MOON-HOST-01 | moon-host-01-nic2 | 192.168.102.20 | Broken | 10GbE Full Duplex |
|
||||
| MOON-HOST-02 | moon-host-02-nic1 | 192.168.102.30 | Active | 10GbE Full Duplex |
|
||||
| MOON-HOST-02 | moon-host-02-nic2 | 192.168.102.40 | Broken | 10GbE Full Duplex |
|
||||
| MOON-STORAGE-01 | lagg2 (ix0) | 192.168.102.50, 192.168.102.60, 192.168.102.70, 192.168.102.80 | Broken | 10GbE Full Duplex |
|
||||
| MOON-STORAGE-01 | lagg2 (ix1) | 192.168.102.50, 192.168.102.60, 192.168.102.70, 192.168.102.80 | Broken | 10GbE Full Duplex |
|
||||
| MOON-STORAGE-01 | lagg2 (ix2) | 192.168.102.50, 192.168.102.60, 192.168.102.70, 192.168.102.80 | Active | 10GbE Full Duplex |
|
||||
| MOON-STORAGE-01 | lagg2 (ix3) | 192.168.102.50, 192.168.102.60, 192.168.102.70, 192.168.102.80 | Active | 10GbE Full Duplex |
|
25
Homelab Networking/IP Addresses.md
Normal file
25
Homelab Networking/IP Addresses.md
Normal file
@ -0,0 +1,25 @@
|
||||
### IP Addresses
|
||||
Documented IP addresses / MAC addresses of physical servers, containers, virtual machines, and IoT devices on the homelab network.
|
||||
|
||||
## Subnets
|
||||
### SERVER Network (192.168.3.0/24)
|
||||
|
||||
| **IP Address** | **Description** | **MAC Address** |
|
||||
| :--- | :--- | :--- |
|
||||
| 192.168.3.10 | NEXUS-DC-01 | 00:00:00:00:00:00 |
|
||||
| 192.168.3.11 | NEXUS-DC-02| 00:00:00:00:00:00 |
|
||||
|
||||
### DOCKER Network (192.168.5.0/24)
|
||||
| **Description** | **IP Address** | **MAC Address** |
|
||||
| :--- | :--- | :--- |
|
||||
| PLACEHOLDER | 192.168.5.0/24 | 00:00:00:00:00:00 |
|
||||
|
||||
### LAN Network (10.0.0.0/24)
|
||||
| **Description** | **IP Address** | **MAC Address** |
|
||||
| :--- | :--- | :--- |
|
||||
| PLACEHOLDER | 10.0.0.0/24 | 00:00:00:00:00:00 |
|
||||
|
||||
### VPN Network (192.168.7.0/24)
|
||||
| **Description** | **IP Address** | **MAC Address** |
|
||||
| :--- | :--- | :--- |
|
||||
| PLACEHOLDER | 192.168.7.0/24 | 00:00:00:00:00:00 |
|
25
Homelab Networking/Tuya Smart Lights.md
Normal file
25
Homelab Networking/Tuya Smart Lights.md
Normal file
@ -0,0 +1,25 @@
|
||||
### pfSense DHCP Reservations for Tuya-Based Smart Devices
|
||||
| **Description** | **IP Address** | **MAC Address** | **Hostname** | **Device ID** | **Local Key** |
|
||||
| :--- | :--- | :--- | :--- | :--- | :--- |
|
||||
| Bottom of Stairs | 10.0.0.200 | bc:dd:c2:90:72:bf | ESP\_9072BF | 50316010bcddc29072bf | 5c92ba765b22a96f |
|
||||
| Right Monitor | 10.0.0.201 | bc:dd:c2:90:1a:ef | ESP\_901AEF | 50316010bcddc2901aef | ea4852cf67fbff52 |
|
||||
| Downstairs Light | 10.0.0.202 | bc:dd:c2:8f:e4:c4 | ESP\_8FE4C4 | 74160333bcddc28fe4c4 | c207fffba7143bdb |
|
||||
| Right TV Light | 10.0.0.203 | b4:e6:2d:4b:c3:fe | ESP\_4BC3FE | 36087764b4e62d4bc3fe | 9e807e03a398a31c |
|
||||
| Nightstand | 10.0.0.204 | b4:e6:2d:4b:c3:cb | ESP\_4BC3CB | 36087764b4e62d4bc3cb | 739fca9d40634ad5 |
|
||||
| Top of Stairs | 10.0.0.205 | bc:dd:c2:90:4e:d9 | ESP\_904ED9 | 50316010bcddc2904ed9 | 23452028cfe464c0 |
|
||||
| Bathroom | 10.0.0.206 | 2c:f4:32:22:04:21 | ESP\_220421 | 105480752cf432220421 | 03099191b6ab585e |
|
||||
| Front Porch | 10.0.0.207 | bc:dd:c2:94:7a:ae | ESP\_947AAE | 50316010bcddc2947aae | 18d074fa9ff47087 |
|
||||
| Left Monitor | 10.0.0.208 | 2c:f4:32:21:af:1a | ESP\_21AF1A | 105480752cf43221af1a | aef4f6067548c3a9 |
|
||||
| Puppy Nook | 10.0.0.209 | cc:50:e3:fe:aa:2b | ESP\_FEAA2B | 76380710cc50e3feaa2b | 7c881c27da5079b6 |
|
||||
| TV | 10.0.0.210 | cc:50:e3:78:ba:b9 | ESP\_78BAB9 | 35138222cc50e378bab9 | 89b366574278e990 |
|
||||
| Left TV Light | 10.0.0.211 | cc:50:e3:78:91:6d | ESP\_78916D | 10548075cc50e378916d | a2d0aeb1ad676b9f |
|
||||
| Bedroom Light | 10.0.0.212 | bc:dd:c2:90:76:45 | | 50316010bcddc2907645 | d73b0af93d1bf2da |
|
||||
| Garden Water Pump | 10.0.0.213 | 98:f4:ab:ef:7c:2c | | 2182401498f4abef7c2c | 4715733dd7850f00 |
|
||||
| wifi Water Timer | 10.0.0.214 | | | eb54e6ae7c7536a4bbawyw | 2a72efa9b2f36437 |
|
||||
| Tech Room Light Strips | 10.0.0.215 | | | eb7dd0deaab376a2ffsqwl | 2a72efa9b2f36437 |
|
||||
| Irrigation Hub | 10.0.0.216 | 10:d5:61:5a:b1:6b | | eb3b374a82a993d252j7v9 | 2a72efa9b2f36437 |
|
||||
| Front Lawn Sprinkler | | | | ebace67e93f8fde4ccdv7p | 2a72efa9b2f36437 |
|
||||
|
||||
### Misc Color Profile Notes:
|
||||
- **1 NAME 3 4 0 255 2 5 1500 8000**
|
||||
- 20 NAME 22 23 29 1000 21 24 2700 6500
|
56
Virtualization Documentation/Harvester.md
Normal file
56
Virtualization Documentation/Harvester.md
Normal file
@ -0,0 +1,56 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Deploy Rancher Harvester Cluster
|
||||
Rancher Harvester is an awesome tool that acts like a self-hosted cloud VDI provider, similar to AWS, Linode, and other online cloud compute platforms. In most scenarios, you will deploy "Rancher" in addition to Harvester to orchestrate the deployment, management, and rolling upgrades of a Kubernetes Cluster. You can also just run standalone Virtual Machines, similar to Hyper-V, RHEV, oVirt, Bhyve, XenServer, XCP-NG, and VMware ESXi.
|
||||
|
||||
:::note Prerequisites
|
||||
This document assumes your bare-metal host has at least 32GB of Memory, 200GB of Disk Space, and 8 processor cores. See [Recommended System Requirements](https://docs.harvesterhci.io/v1.1/install/requirements)
|
||||
:::
|
||||
|
||||
## First Harvester Node
|
||||
### Download Installer ISO
|
||||
You will need to navigate to the Rancher Harvester GitHub to download the [latest ISO release of Harvester](https://releases.rancher.com/harvester/v1.1.2/harvester-v1.1.2-amd64.iso), currently **v1.1.2**. Then image it onto a USB flashdrive using a tool like [Rufus](https://github.com/pbatard/rufus/releases/download/v4.2/rufus-4.2p.exe). Proceed to boot the bare-metal server from the USB drive to begin the Harvester installation process.
|
||||
### Begin Setup Process
|
||||
You will be waiting a few minutes while the server boots from the USB drive, but you will eventually land on a page where it asks you to set up various values to use for networking and the cluster itself.
|
||||
The values seen below are examples and represent how my homelab is configured.
|
||||
- **Management Interface(s)**: `eno1,eno2,eno3,eno4`
|
||||
- **Network Bond Mode**: `Active-Backup`
|
||||
- **IP Address**: `192.168.3.254/24` *<---- **Note:** Be sure to add CIDR Notation*.
|
||||
- **Gateway**: `192.168.3.1`
|
||||
- **DNS Server(s)**: `1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4`
|
||||
- **Cluster VIP (Virtual IP)**: `192.168.3.251` *<---- **Note**: See "VIRTUAL IP CONFIGURATION" note below.*
|
||||
- **Cluster Node Token**: `19-USED-when-JOINING-more-NODES-to-EXISTING-cluster-55`
|
||||
- **NTP Server(s)**: `0.suse.pool.ntp.org`
|
||||
|
||||
:::caution Virtual IP Configuration
|
||||
The VIP assigned to the first node in the cluster will act as a proxy to the built-in load-balancing system. It is important that you do not create a second node with the same VIP (Could cause instability in existing cluster), or use an existing VIP as the Node IP address of a new Harvester Cluster Node.
|
||||
:::
|
||||
:::tip
|
||||
Based on your preference, it would be good to assign the device a static DHCP reservation, or use numbers counting down from **.254** (e.g. `192.168.3.254`, `192.168.3.253`, `192.168.3.252`, etc...)
|
||||
:::
|
||||
|
||||
### Wait for Installation to Complete
|
||||
The installation process will take quite some time, but when it is finished, the Harvester Node will reboot and take you to a splash screen with the Harvester logo, with indicators as to what the VIP and Management Interface IPs are configured as, and whether or not the associated systems are operational and ready. **Be patient until both statuses say `READY`**. If after 15 minutes the status has still not changed to `READY` both for fields, see the note below.
|
||||
:::caution Issues with `rancher-harvester-repo` Image
|
||||
During my initial deployment efforts with Harvester v.1.1.2, I noticed that the Harvester Node never came online. That was because something bugged-out during installation and the `rancher-harvester-repo` image was not properly installed prior to node initialization. This will effectively soft-lock the node unless you reinstall the node from scratch, as the Docker Hub Registry that Harvester is looking for to finish the deployment does not exist anymore and depends on the local image bundled with the installer ISO.
|
||||
|
||||
If this happens, you unfortunately need to start over and reinstall Harvester and hope that it works the second time around. No other workarounds are currently known at this time on version 1.1.2.
|
||||
:::
|
||||
|
||||
## Additional Harvester Nodes
|
||||
If you work in a production environment, you will want more than one Harvester node to allow live-migrations, high-availability, and better load-balancing in the Harvester Cluster. The section below will outline the steps necessary to create additional Harvester nodes, join them to the existing Harvester cluster, and validate that they are functioning without issues.
|
||||
### Installation Process
|
||||
Not Documented Yet
|
||||
### Joining Node to Existing Cluster
|
||||
Not Documented Yet
|
||||
|
||||
## Installing Rancher
|
||||
If you plan on using Harvester for more than just running Virtual Machines (e.g. Containers), you will want to deploy Rancher inside of the Harvester Cluster in order or orchestrate the deployment, management, and rolling upgrades of various forms of Kubernetes Clusters (RKE2 Suggested). The steps below will go over the process of deploying a High-Availability Rancher environment to "adopt" Harvester as a VDI/compute platform for deploying the Kubernetes Cluster.
|
||||
### Provision ControlPlane Node(s) VMs on Harvester
|
||||
Not Documented Yet
|
||||
### Adopt Harvester as Cluster Target
|
||||
Not Documented Yet
|
||||
### Deploy Production Kubernetes Cluster to Harvester
|
||||
Not Documented Yet
|
@ -0,0 +1,84 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Canonical OpenStack
|
||||
OpenStack is basically a virtual machine hypervisor that is HA and cluster-friendly. This particular variant is deployed via Canonical's MiniStack environment using SNAP. It will deploy OpenStack onto a single node, which can later be expanded to additional nodes. You can also use something like OpenShift to deploy a Kubernetes Cluster onto OpenStack automatically via its various APIs.
|
||||
|
||||
**Reference Documentation**:
|
||||
- https://discourse.ubuntu.com/t/single-node-guided/35765
|
||||
- https://microstack.run/docs/single-node-guided
|
||||
|
||||
:::note Prerequisites
|
||||
This document assumes your bare-metal host server is running Ubuntu 22.04 LTS, has at least 16GB of Memory (**32GB for Multi-Node Deployments**), two network interfaces (one for management, one for remote VM access), 200GB of Disk Space for the root filesystem, another 200GB disk for Ceph distributed storage, and 4 processor cores. See [Single-Node Mode System Requirements](https://ubuntu.com/openstack/install)
|
||||
:::
|
||||
|
||||
:::note Assumed Networking on the First Cluster Node
|
||||
- **eth0** = 192.168.3.5
|
||||
- **eth1** = 192.168.5.200
|
||||
:::
|
||||
|
||||
### Update APT then install upgrades
|
||||
```
|
||||
sudo apt update && sudo apt upgrade -y && sudo apt install htop ncdu iptables nano -y
|
||||
```
|
||||
:::tip
|
||||
At this time, it would be a good idea to take a checkpoint/snapshot of the server (if it is a virtual machine). This gives you a starting point to come back to as you troubleshoot inevitable deployment issues.
|
||||
:::
|
||||
### Update SNAP then install OpenStack SNAP
|
||||
```
|
||||
sudo snap refresh
|
||||
sudo snap install openstack --channel 2023.1
|
||||
```
|
||||
### Install & Configure Dependencies
|
||||
Sunbeam can generate a script to ensure that the machine has all of the required dependencies installed and is configured correctly for use in MicroStack.
|
||||
```
|
||||
sunbeam prepare-node-script | bash -x && newgrp snap_daemon
|
||||
sudo reboot
|
||||
```
|
||||
### Bootstrapping
|
||||
Deploy the OpenStack cloud using the cluster bootstrap command.
|
||||
```
|
||||
sunbeam cluster bootstrap
|
||||
```
|
||||
:::caution
|
||||
If you get an "Unable to connect to websocket" error, run `sudo snap restart lxd`.
|
||||
[Known Bug Report](https://bugs.launchpad.net/snap-openstack/+bug/2033400)
|
||||
:::
|
||||
:::note Bootstrap Variables:
|
||||
- Management networks shared by hosts = `192.168.3.0/24`
|
||||
- MetalLB address allocation range (supports multiple ranges, comma separated) (10.20.21.10-10.20.21.20): `192.168.3.50-192.168.3.60`
|
||||
:::
|
||||
|
||||
### Cloud Initialization:
|
||||
- nicole@moon-stack-01:~$ `sunbeam configure --openrc demo-openrc`
|
||||
- Local or remote access to VMs [local/remote] (local): `remote`
|
||||
- CIDR of network to use for external networking (10.20.20.0/24): `192.168.5.0/24`
|
||||
- IP address of default gateway for external network (192.168.5.1):
|
||||
- Populate OpenStack cloud with demo user, default images, flavors etc [y/n] (y):
|
||||
- Username to use for access to OpenStack (demo): `nicole`
|
||||
- Password to use for access to OpenStack (Vb********): `<PASSWORD>`
|
||||
- Network range to use for project network (192.168.122.0/24):
|
||||
- List of nameservers guests should use for DNS resolution (192.168.3.11 192.168.3.10):
|
||||
- Enable ping and SSH access to instances? [y/n] (y):
|
||||
- Start of IP allocation range for external network (192.168.5.2): `192.168.5.201`
|
||||
- End of IP allocation range for external network (192.168.5.254): `192.168.5.251`
|
||||
- Network type for access to external network [flat/vlan] (flat):
|
||||
- Free network interface that will be configured for external traffic: `eth1`
|
||||
- WARNING: Interface eth1 is configured. Any configuration will be lost, are you sure you want to continue? [y/n]: y
|
||||
|
||||
### Pull Down / Generate the Dashboard URL
|
||||
```
|
||||
sunbeam openrc > admin-openrc
|
||||
sunbeam dashboard-url
|
||||
```
|
||||
|
||||
### Launch a Test VM:
|
||||
Verify the cloud by launching a VM called ‘test’ based on the ‘ubuntu’ image (Ubuntu 22.04 LTS).
|
||||
```
|
||||
sunbeam launch ubuntu --name test
|
||||
```
|
||||
:::note Sample output:
|
||||
Launching an OpenStack instance ...
|
||||
Access instance with `ssh -i /home/ubuntu/.config/openstack/sunbeam ubuntu@10.20.20.200`
|
||||
:::
|
66
Windows Server/Change Windows Edition.md
Normal file
66
Windows Server/Change Windows Edition.md
Normal file
@ -0,0 +1,66 @@
|
||||
# Changing Windows Editions
|
||||
### Changing Editions:
|
||||
Windows Server: `DISM /ONLINE /set-edition:serverstandard /productkey:AAAAA-BBBBB-CCCCC-DDDDD-EEEEE /AcceptEula`
|
||||
|
||||
Windows (Home/Pro): `DISM /ONLINE /set-edition:professional /productkey:AAAAA-BBBBB-CCCCC-DDDDD-EEEEE /AcceptEula`
|
||||
|
||||
### Force Activation / Edition Switcher:
|
||||
`irm https://massgrave.dev/get | iex`
|
||||
|
||||
## Generic Install Keys
|
||||
### Windows 10
|
||||
| Windows Edition | RTM Generic Key (Retail) | [**KMS Client Setup Key**](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj612867(v%3dws.11)) |
|
||||
| :--- | :--- | :--- |
|
||||
| Windows 10 Home | YTMG3-N6DKC-DKB77-7M9GH-8HVX7 | TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 |
|
||||
| Windows 10 Home N | 4CPRK-NM3K3-X6XXQ-RXX86-WXCHW | 3KHY7-WNT83-DGQKR-F7HPR-844BM |
|
||||
| Windows 10 Home Single Language | BT79Q-G7N6G-PGBYW-4YWX6-6F4BT | 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH |
|
||||
| Windows 10 Pro | VK7JG-NPHTM-C97JM-9MPGT-3V66T | W269N-WFGWX-YVC9B-4J6C9-T83GX |
|
||||
| Windows 10 Pro N | 2B87N-8KFHP-DKV6R-Y2C8J-PKCKT | MH37W-N47XK-V7XM9-C7227-GCQG9 |
|
||||
| Windows 10 Pro for Workstations | DXG7C-N36C4-C4HTG-X4T3X-2YV77 | NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J |
|
||||
| Windows 10 Pro N for Workstations | WYPNQ-8C467-V2W6J-TX4WX-WT2RQ | 9FNHH-K3HBT-3W4TD-6383H-6XYWF |
|
||||
| Windows 10 S | 3NF4D-GF9GY-63VKH-QRC3V-7QW8P | |
|
||||
| Windows 10 Education | YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY | NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 |
|
||||
| Windows 10 Education N | 84NGF-MHBT6-FXBX8-QWJK7-DRR8H | 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ |
|
||||
| Windows 10 Pro Education | 8PTT6-RNW4C-6V7J2-C2D3X-MHBPB | 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y |
|
||||
| Windows 10 Pro Education N | GJTYN-HDMQY-FRR76-HVGC7-QPF8P | YVWGF-BXNMC-HTQYQ-CPQ99-66QFC |
|
||||
| Windows 10 Enterprise | XGVPP-NMH47-7TTHJ-W3FW7-8HV2C | NPPR9-FWDCX-D2C8J-H872K-2YT43 |
|
||||
| Windows 10 Enterprise G | | YYVX9-NTFWV-6MDM3-9PT4T-4M68B |
|
||||
| Windows 10 Enterprise G N | FW7NV-4T673-HF4VX-9X4MM-B4H4T | 44RPN-FTY23-9VTTB-MP9BX-T84FV |
|
||||
| Windows 10 Enterprise N | WGGHN-J84D6-QYCPR-T7PJ7-X766F | DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 |
|
||||
| Windows 10 Enterprise S | NK96Y-D9CD8-W44CQ-R8YTK-DYJWX | FWN7H-PF93Q-4GGP8-M8RF3-MDWWW |
|
||||
| Windows 10 Enterprise 2015 LTSB | | WNMTR-4C88C-JK8YV-HQ7T2-76DF9 |
|
||||
| Windows 10 Enterprise 2015 LTSB N | | 2F77B-TNFGY-69QQF-B8YKP-D69TJ |
|
||||
| Windows 10 Enterprise LTSB 2016 | | DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ |
|
||||
| Windows 10 Enterprise N LTSB 2016 | RW7WN-FMT44-KRGBK-G44WK-QV7YK | QFFDN-GRT3P-VKWWX-X7T3R-8B639 |
|
||||
| Windows 10 Enterprise LTSC 2019 | | M7XTQ-FN8P6-TTKYV-9D4CC-J462D |
|
||||
| Windows 10 Enterprise N LTSC 2019 | | 92NFX-8DJQP-P6BBQ-THF9C-7CG2H |
|
||||
| Windows 10 Home | 37GNV-YCQVD-38XP9-T848R-FC2HD | | |
|
||||
| Windows 10 Home N | 33CY4-NPKCC-V98JP-42G8W-VH636 | | |
|
||||
| Windows 10 Pro | NF6HC-QH89W-F8WYV-WWXV4-WFG6P | | |
|
||||
| Windows 10 Pro N | NH7W7-BMC3R-4W9XT-94B6D-TCQG3 | | |
|
||||
| Windows 10 SL | NTRHT-XTHTG-GBWCG-4MTMP-HH64C | | |
|
||||
| Windows 10 CHN SL | 7B6NC-V3438-TRQG7-8TCCX-H6DDY | | |
|
||||
| Windows 10 Home | 46J3N-RY6B3-BJFDY-VBFT9-V22HG | | |
|
||||
| Windows 10 Home N | PGGM7-N77TC-KVR98-D82KJ-DGPHV | | |
|
||||
| Windows 10 Pro | RHGJR-N7FVY-Q3B8F-KBQ6V-46YP4 | | |
|
||||
| Windows 10 Pro N | 2KMWQ-NRH27-DV92J-J9GGT-TJF9R | | |
|
||||
| Windows 10 SL | GH37Y-TNG7X-PP2TK-CMRMT-D3WV4 | | |
|
||||
| Windows 10 CHN SL | 68WP7-N2JMW-B676K-WR24Q-9D7YC | | |
|
||||
|
||||
|
||||
### Windows Server
|
||||
| Windows Edition | RTM Generic Key (Retail) | [**KMS Client Setup Key**](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj612867(v%3dws.11)) |
|
||||
| :--- | :--- | :--- |
|
||||
| Windows Server 2016 Datacenter | | CB7KF-BWN84-R7R2Y-793K2-8XDDG |
|
||||
| Windows Server 2016 Standard | | WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY |
|
||||
| Windows Server 2016 Essentials | | JCKRF-N37P4-C2D82-9YXRT-4M63B |
|
||||
| Windows Server 2019 Datacenter | | WMDGN-G9PQG-XVVXX-R3X43-63DFG |
|
||||
| Windows Server 2019 Standard | | N69G4-B89J2-4G8F4-WWYCC-J464C |
|
||||
| Windows Server 2019 Essentials | | WVDHN-86M7X-466P6-VHXV7-YY726 |
|
||||
| Windows Server 2022 Standard | | VDYBN-27WPP-V4HQT-9VMD4-VMK7H |
|
||||
| Windows Server 2022 Datacenter Azure | | NTBV8-9K7Q8-V27C6-M2BTV-KHMXV |
|
||||
| Windows Server 2022 Datacenter | | WX4NM-KYWYW-QJJR4-XV3QB-6VM33 |
|
||||
|
||||
## Additional Reference Documentation:
|
||||
https://www.tenforums.com/tutorials/95922-generic-product-keys-install-windows-10-editions.html
|
||||
[https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys](https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys)
|
23
Windows Server/Convert SSL Certificates into PFX Files.md
Normal file
23
Windows Server/Convert SSL Certificates into PFX Files.md
Normal file
@ -0,0 +1,23 @@
|
||||
**Purpose**: Sometimes you may find that you need to convert a `.crt` or `.pem` certificate file into a `.pfx` file that Microsoft IIS Server Manager can import for something like Exchange Server or another custom IIS-based server.
|
||||
|
||||
# Download the Certificate Files
|
||||
This step will vary based on how you are obtaining the certificates. The primary thing to focus on is making sure you have the certificate file and the private key.
|
||||
```jsx title="Certificate Folder Structure"
|
||||
certificate.crt
|
||||
certificate.pem
|
||||
gd-g2_iis_intermediates.p7b
|
||||
private.key
|
||||
```
|
||||
|
||||
# Convert using OpenSSL
|
||||
You will need a linux machine such as Ubuntu 22.04LTS, or to download the Windows equivelant of OpenSSL in order to run the necessary commands to convert and package the files into a `.pfx` file that IIS Server Manager can use.
|
||||
:::note
|
||||
You need to make sure that all of the certificate files as well as private key are in the same folder (to keep things simple) during the conversion process. **It will prompt you to enter a password for the PFX file, choose anything you want.**
|
||||
:::
|
||||
```jsx title="OpenSSL Conversion Command"
|
||||
openssl pkcs12 -export -out IIS-Certificate.pfx -inkey private.key -in gd-g2_iis_intermediates.p7b -in certificate.crt
|
||||
```
|
||||
|
||||
:::tip
|
||||
You can rename the files anything you want for organizational purposes. Afterall, they are just plaintext files. For example, you could rename `gd-g2_iis_intermediates.p7b` to `intermediate.bundle` and it would still work without issue in the command. During the import phase in IIS Server Manager, you can check a box to enable Exporting the certificate, effectively reverse-engineering it back into a certificate and private key.
|
||||
:::
|
136
Windows Server/Deploying Failover Cluster Host.md
Normal file
136
Windows Server/Deploying Failover Cluster Host.md
Normal file
@ -0,0 +1,136 @@
|
||||
# Deploy Additional Failover Cluster Node
|
||||
Deploying a Windows Server Node into the Hyper-V Failover Cluster is an essential part of rebuilding and expanding the backbone of my homelab. The documentation below goes over the process of setting up a bare-metal host from scratch and integrating it into the Hyper-V Failover Cluster.
|
||||
|
||||
!!! note "Prerequisites"
|
||||
This document assumes you are have installed and are running a bare-metal Hewlett-Packard Enterprise server running iLO (Integrated Lights Out) with the latest build of **Windows Server 2022 Datacenter (Desktop Experience)**. Windows will prompt you that your build is expired if it is too old.
|
||||
|
||||
Download the newest build ISO of Windows Server 2022 at the [Microsoft Evaluation Center](https://go.microsoft.com/fwlink/p/?linkid=2195686&clcid=0x409&culture=en-us&country=us)
|
||||
|
||||
!!! info "Assumption that Cluster Already Exists"
|
||||
This document also assumes that you are adding an additional server node to an existing Hyper-V Failover Cluster. This document does not outline the exact process of setting up a Hyper-V Failover Cluster from-scratch, setting up a domain, DNS server, etc. Those are assumed to already exist in the environment.
|
||||
## Preparation
|
||||
### Enable Remote Desktop
|
||||
The first thing you will want to do is get remote access via Remote Desktop. This will enable higher resolution, faster response times with the GUI, and the ability to transfer files to and from the server more easily.
|
||||
|
||||
- Connect to the server via the iLO Remote Console
|
||||
- Login using your `Administrator` credentials you created during the operating system installation
|
||||
- Open **Server Manager**
|
||||
* Navigate to "Local Server"
|
||||
* Under "Remote Management"
|
||||
* Click on "Disabled"
|
||||
* Un-check: "Allow Remote Connections to this Computer"
|
||||
!!! warning "Disable NLA (Network Level Authentication)"
|
||||
Ensure that "Allow Connections only from computers running Remote Desktop with Network Level Authentication" is un-checked. This is important because if you are running a Hyper-V Failover Cluster, if the domain controller(s) are not running, you may be effectively locked out from using Remote Desktop to access the failover cluster's nodes, forcing you to use iLO or a physical console into the server to log in and bootstrap the cluster's Guest VMs online.
|
||||
|
||||
This step can be disregarded if the domain controller(s) exist outside of the Hyper-V Failover Cluster.
|
||||
|
||||
- Locate the (*current*) DHCP-issued IP address of the server for Remote Desktop
|
||||
* You will want to use Remote Desktop for the next stage of deployment to transfer an ISO file to the server
|
||||
* Log into the server with Remote Desktop using the `Administrator` credentials you created when initially installing the operating system
|
||||
* You can use `ipconfig /all` to locate the current DHCP-issued IP address
|
||||
### Provision Server Role & Domain Join
|
||||
You will want to rename the computer so it has the correct naming scheme before installing any server roles or domain joining it. The general naming convention is `MOON-NODE-<0#>`. Use a domain administrator credential for the join command when prompted. Restart the computer to finalize the changes.
|
||||
**Increment the hostname number based on the existing servers in the cluster / homelab.**
|
||||
|
||||
``` powershell
|
||||
# Rename the server
|
||||
Rename-Computer MOON-NODE-01
|
||||
|
||||
# Domain-join the server
|
||||
Add-Computer MOONGATE.local
|
||||
|
||||
# Install Hyper-V server role
|
||||
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools
|
||||
|
||||
# Install the Failover Clustering feature
|
||||
Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools
|
||||
|
||||
# Restart the server to apply all pending configurations
|
||||
Restart-Computer
|
||||
```
|
||||
|
||||
## Failover Cluster Configuration
|
||||
### Configure Cluster SET Networking
|
||||
You will need to start off by configuring a Switch Embedded Teaming (SET) team. This is the backbone that the server will use for all Guest VM traffic as well as remote-desktop access to the server node itself. You will need to rename the network adapters to make management easier.
|
||||
|
||||
- Navigate to "Network Connections" then "Change Adapter Options"
|
||||
* Rename the network adapters with simpler names. e.g. (`Embedded LOM 1 Port 1` becomes `Port_1`)
|
||||
* For the sake of demonstration, assume there are 4 NICs (`Port_1`, `Port_2`, `Port_3`, and `Port_4`)
|
||||
|
||||
!!! warning "10GbE Network Adapters"
|
||||
Be sure to leave the dual 10GbE network adapters out of the renaming work. They will be used later with the iSCSI Initiator.
|
||||
|
||||
``` powershell
|
||||
# Switch Embedded Teaming (SET) team
|
||||
New-VMSwitch -Name Cluster_SET -NetAdapterName Port_1, Port_2, Port_3, Port_4 -EnableEmbeddedTeaming $true
|
||||
```
|
||||
### Configure Static IP Address
|
||||
You may be booted out of the Remote Desktop session at this time due to how the network team changed the configuration. Leverage iLO to remotely access the server again to configure a static IP address on the new `vEthernet (Cluster_SET)` NIC using the following configuration. **While in the NIC Properties, disable IPv6.**
|
||||
|
||||
| IP ADDRESS | SUBNET MASK | GATEWAY | PRIMARY DNS | SECONDARY DNS |
|
||||
| ----------- | ------------- | ----------- | ------------ | ------------- |
|
||||
| 192.168.3.5 | 255.255.255.0 | 192.168.3.1 | 192.168.3.10 | 192.168.3.11 |
|
||||
|
||||
### Configure Static IP Addresses for 10GbE Networking
|
||||
You will now want to set up the network adapters for the 10GbE iSCSI back-end. Configure both of the `Intel(R) Ethernet Controller x540-AT2` 10GbE NICs and change their IP addresses to match the table below. Rename the NICs to match a `NIC1` and `NIC2` naming scheme. Also disable IPv6.
|
||||
!!! warning
|
||||
Make sure that you test that each interface can ping their respective iSCSI target by performing a ping using the IP address in the "ISCSI PING IP" column of the table. If it fails to successfully ping, swap the IP addresses of the 10GbE NICs until it succeeds.
|
||||
|
||||
| IP Address | Subnet Mask | Gateway | Primary DNS | Secondary DNS | iSCSI Ping IP |
|
||||
| --------------- | ------------- | ------------- | ------------ | ------------- | --------------- |
|
||||
| 192.168.102.200 | 255.255.255.0 | <Leave Blank> | 192.168.3.10 | 192.168.3.11 | 192.168.102.100 |
|
||||
| 192.168.104.200 | 255.255.255.0 | <Leave Blank> | 192.168.3.10 | 192.168.3.11 | 192.168.104.100 |
|
||||
|
||||
### Configure iSCSI Initiator to Connect to TrueNAS Core Server
|
||||
At this point, now that we have verified that the 10GbE NICs can ping their respective iSCSI target server IP addresses, we can add them to the iSCSI Initiator in Server Manager which will allow us to mount the cluster storage for the Hyper-V Failover Cluster.
|
||||
|
||||
- Open **Server Manager**
|
||||
* Click on the "Tools" dropdown menu
|
||||
* Click on "iSCSI Initiator"
|
||||
* You will be prompted to start the Microsoft iSCSI service. Click on "Yes" to proceed.
|
||||
* Click on the "Discovery" tab
|
||||
* Click the "Discover Portal" button
|
||||
* Enter the IP addresses of the "iSCSI Ping IP(s)" from the previous section. Leave the port as "3260".
|
||||
* Navigate to the [TrueNAS Core server](https://storage.cyberstrawberry.net) and add the "Initiator Name" seen on the "Configuration" tab to the `Sharing > iSCSI > Initiator Groups` > "Hyper-V Failover Cluster Hosts"
|
||||
* Example Initiator Name: `iqn.1991-05.com.microsoft:moon-node-01.moongate.local`
|
||||
* This is not explicitly documented at this time and is different from lab to lab in regards to the iSCSI implementation
|
||||
* Click the "Targets" tab to go back to the main page
|
||||
* Click the "Refresh" button to display available iSCSI Targets
|
||||
* Click on the first iSCSI Target `failover-cluster-storage` then click the "Connect" button
|
||||
* Check the "Enable Multi-Path" checkbox
|
||||
* Click the "Advanced" button
|
||||
* Click the "OK" button
|
||||
* Repeat the connection process seen above for all remaining iSCSI Targets
|
||||
* Close out of the iSCSI Initiator window
|
||||
* Navigate to "Disk Management" to bring the iSCSI drives "Online"
|
||||
|
||||
## Initialize and Join to Existing Failover-Cluster
|
||||
### Validate Server is Ready to Join Cluster
|
||||
Now it is time to set up the Failover Cluster itself so we can join the server to the existing cluster.
|
||||
|
||||
- Open **Server Manager**
|
||||
* Click on the "Tools" dropdown menu
|
||||
* Click on "Failover Cluster Manager"
|
||||
* Click the "Validate Configuration" button in the middle of the window that appears
|
||||
* Click "Next"
|
||||
* Enter Server Name: `MOON-NODE-01.moongate.local`
|
||||
* Click the "Add" button, then "Next"
|
||||
* Ensure "Run All Tests (Recommended)" is selected, then click "Next", then click "Next" to start.
|
||||
### Join Server to Failover Cluster
|
||||
* On the left-hand side, right-click on the "Failover Cluster Manager" in the tree
|
||||
* Click on "Connect to Cluster"
|
||||
* Enter `MOON-CLUSTER.moongate.local`
|
||||
* Click "OK"
|
||||
* Expand "MOON-CLUSTER.moongate.local" on the left-hand tree
|
||||
* Right-click on "Nodes"
|
||||
* Click "Add Node..."
|
||||
* Click "Next"
|
||||
* Enter Server Name: `MOON-NODE-01.moongate.local`
|
||||
* Click the "Add" button, then "Next"
|
||||
* Ensure that "Run Configuration Validation Tests" radio box is checked, then click "Next"
|
||||
* Validate that the node was successfully added to the Hyper-V Failover Cluster
|
||||
## Cleanup & Final Touches
|
||||
### Activate Windows Server
|
||||
You will need to change the edition from "**Windows Server 2022 Datacenter Evaluation**" to "**Windows Server 2022 Datacenter**". This will ensure that the server does not randomly reboot itself. If you have a license, you can install it now. Otherwise, you can force-activate using the [Changing Windows Edition](https://docs.cyberstrawberry.net/mkdocs-material/homelab/Windows%20Server/Change%20Windows%20Edition/) documentation.
|
||||
### Run Windows Updates
|
||||
Ensure that you run all available Windows Updates before delegating guest VM roles to the new server in the failover cluster. This ensures you are up-to-date before you become reliant on the server for production operations.
|
3
Windows Server/Microsoft Exchange/placeholder.md
Normal file
3
Windows Server/Microsoft Exchange/placeholder.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Overview
|
||||
### Purpose
|
||||
Placeholder
|
BIN
assets/favicon.png
Normal file
BIN
assets/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
166
schema.json
Normal file
166
schema.json
Normal file
@ -0,0 +1,166 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Material for MkDocs",
|
||||
"markdownDescription": "Configuration",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"INHERIT": {
|
||||
"title": "Inherit from configuration",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#configuration-inheritance",
|
||||
"pattern": "\\.yml$"
|
||||
},
|
||||
"site_name": {
|
||||
"title": "Site name, used in header, title and drawer",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#site_name",
|
||||
"type": "string"
|
||||
},
|
||||
"site_url": {
|
||||
"title": "Site URL",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#site_url",
|
||||
"type": "string"
|
||||
},
|
||||
"site_author": {
|
||||
"title": "Site author, used in document head",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#site_author",
|
||||
"type": "string"
|
||||
},
|
||||
"site_description": {
|
||||
"title": "Site description, used in document head and in social cards",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#site_description",
|
||||
"type": "string"
|
||||
},
|
||||
"repo_name": {
|
||||
"title": "Repository name, used in header",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#repository-name",
|
||||
"type": "string"
|
||||
},
|
||||
"repo_url": {
|
||||
"title": "Repository URL",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#repository",
|
||||
"type": "string"
|
||||
},
|
||||
"edit_uri": {
|
||||
"title": "Path from repository root to directory containing Markdown",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#edit_uri",
|
||||
"type": "string"
|
||||
},
|
||||
"copyright": {
|
||||
"title": "Copyright, used in footer",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/#copyright-notice",
|
||||
"type": "string"
|
||||
},
|
||||
"docs_dir": {
|
||||
"title": "Directory containing the Markdown sources",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#docs_dir",
|
||||
"type": "string",
|
||||
"default": "docs"
|
||||
},
|
||||
"site_dir": {
|
||||
"title": "Directory containing the HTML output",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#site_dir",
|
||||
"type": "string",
|
||||
"default": "site"
|
||||
},
|
||||
"use_directory_urls": {
|
||||
"title": "Pages are located in their own directories",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#use_directory_urls",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"extra_templates": {
|
||||
"title": "Additional HTML files to include",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#extra_templates",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to HTML file",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#extra_templates",
|
||||
"pattern": "\\.html$"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"extra_css": {
|
||||
"title": "Additional CSS files to include",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-css",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to CSS file",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-css",
|
||||
"pattern": "\\.css($|\\?)"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"extra_javascript": {
|
||||
"title": "Additional JavaScript files to include",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to JavaScript file",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript",
|
||||
"pattern": "\\.m?js($|\\?)"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"hooks": {
|
||||
"title": "Hooks",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#hooks",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to Python file",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#hooks",
|
||||
"pattern": "\\.py$"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"strict": {
|
||||
"title": "Strict mode",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#strict",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"dev_addr": {
|
||||
"title": "Development IP Address",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#dev_addr",
|
||||
"type": "string",
|
||||
"default": "127.0.0.1:8000"
|
||||
},
|
||||
"remote_branch": {
|
||||
"title": "Remote branch to deploy to",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#remote_branch",
|
||||
"type": "string",
|
||||
"default": "gh-pages"
|
||||
},
|
||||
"remote_name": {
|
||||
"title": "Remote origin to deploy to",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#remote_name",
|
||||
"type": "string",
|
||||
"default": "origin"
|
||||
},
|
||||
"theme": {
|
||||
"$ref": "schema/theme.json"
|
||||
},
|
||||
"plugins": {
|
||||
"$ref": "schema/plugins.json"
|
||||
},
|
||||
"markdown_extensions": {
|
||||
"$ref": "schema/extensions.json"
|
||||
},
|
||||
"extra": {
|
||||
"$ref": "schema/extra.json"
|
||||
},
|
||||
"nav": {
|
||||
"$ref": "schema/nav.json"
|
||||
},
|
||||
"watch": {
|
||||
"items": {
|
||||
"title": "Path to watch for changes",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
7050
schema/assets/fonts.json
Normal file
7050
schema/assets/fonts.json
Normal file
File diff suppressed because it is too large
Load Diff
12668
schema/assets/icons.json
Normal file
12668
schema/assets/icons.json
Normal file
File diff suppressed because it is too large
Load Diff
18
schema/extensions.json
Normal file
18
schema/extensions.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Markdown extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "extensions/markdown.json"
|
||||
},
|
||||
{
|
||||
"$ref": "extensions/pymdownx.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
}
|
148
schema/extensions/markdown.json
Normal file
148
schema/extensions/markdown.json
Normal file
@ -0,0 +1,148 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Markdown extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/",
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Abbreviations – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#abbreviations",
|
||||
"enum": [
|
||||
"markdown.extensions.abbr",
|
||||
"abbr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Admonition – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#admonition",
|
||||
"enum": [
|
||||
"markdown.extensions.admonition",
|
||||
"admonition"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Attribute Lists – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#attribute-lists",
|
||||
"enum": [
|
||||
"markdown.extensions.attr_list",
|
||||
"attr_list"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Markdown extension: a classier syntax for admonitions",
|
||||
"markdownDescription": "https://github.com/oprypin/markdown-callouts",
|
||||
"enum": [
|
||||
"markdown.extensions.callouts",
|
||||
"callouts"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Definition Lists – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#definition-lists",
|
||||
"enum": [
|
||||
"markdown.extensions.def_list",
|
||||
"def_list"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Footnotes – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#footnotes",
|
||||
"enum": [
|
||||
"markdown.extensions.footnotes",
|
||||
"footnotes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Markdown in HTML – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#markdown-in-html",
|
||||
"enum": [
|
||||
"markdown.extensions.md_in_html",
|
||||
"md_in_html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Tables – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#tables",
|
||||
"enum": [
|
||||
"markdown.extensions.tables",
|
||||
"tables"
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"toc": {
|
||||
"$ref": "#/definitions/toc"
|
||||
},
|
||||
"markdown.extensions.toc": {
|
||||
"$ref": "#/definitions/toc"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"title": "Table Of Contents – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#table-of-contents",
|
||||
"enum": [
|
||||
"markdown.extensions.toc",
|
||||
"toc"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"definitions": {
|
||||
"toc": {
|
||||
"title": "Table Of Contents – Python Markdown",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#table-of-contents",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.title",
|
||||
"type": "string"
|
||||
},
|
||||
"permalink": {
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.permalink",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.permalink",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"default": true
|
||||
},
|
||||
"anchorlink": {
|
||||
"markdownDescription": "https://python-markdown.github.io/extensions/toc/#usage",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"permalink_title": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.permalink_title",
|
||||
"type": "string"
|
||||
},
|
||||
"slugify": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.slugify",
|
||||
"default": "!!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}"
|
||||
},
|
||||
"toc_depth": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.toc_depth",
|
||||
"type": "number",
|
||||
"enum": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
733
schema/extensions/pymdownx.json
Normal file
733
schema/extensions/pymdownx.json
Normal file
@ -0,0 +1,733 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Markdown extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/",
|
||||
"oneOf": [
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.arithmatex": {
|
||||
"title": "Arithmatex – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#arithmatex",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"generic": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"title": "Arithmatex – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#arithmatex",
|
||||
"enum": [
|
||||
"pymdownx.arithmatex"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.betterem": {
|
||||
"title": "BetterEm – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#betterem",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"smart_enable": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/betterem/#options",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"asterisk",
|
||||
"underscore",
|
||||
"none"
|
||||
],
|
||||
"default": "all"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"title": "BetterEm – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#betterem",
|
||||
"enum": [
|
||||
"pymdownx.betterem"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Caret – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
|
||||
"enum": [
|
||||
"pymdownx.caret"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.caret": {
|
||||
"title": "Caret – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"smart_insert": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/caret/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"insert": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/caret/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"superscript": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/caret/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Critic – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#critic",
|
||||
"enum": [
|
||||
"pymdownx.critic"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.critic": {
|
||||
"title": "Critic – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#critic",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mode": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.critic.mode",
|
||||
"enum": [
|
||||
"view",
|
||||
"accept",
|
||||
"reject"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Details – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#details",
|
||||
"enum": [
|
||||
"pymdownx.details"
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Emoji – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji",
|
||||
"enum": [
|
||||
"pymdownx.emoji"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.emoji": {
|
||||
"title": "Emoji – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"emoji_generator": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.emoji_generator",
|
||||
"default": "!!python/name:material.extensions.emoji.to_svg"
|
||||
},
|
||||
"emoji_index": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.emoji_index",
|
||||
"default": "!!python/name:material.extensions.emoji.twemoji"
|
||||
},
|
||||
"options": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"custom_icons": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"emoji_generator",
|
||||
"emoji_index"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Highlight – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight",
|
||||
"enum": [
|
||||
"pymdownx.highlight"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.highlight": {
|
||||
"title": "Highlight – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"use_pygments": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.use_pygments",
|
||||
"type": "boolean"
|
||||
},
|
||||
"pygments_lang_class": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.pygments_lang_class",
|
||||
"type": "boolean"
|
||||
},
|
||||
"auto_title": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.auto_title",
|
||||
"type": "boolean"
|
||||
},
|
||||
"auto_title_map": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/highlight/#options",
|
||||
"type": "object"
|
||||
},
|
||||
"linenums": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.linenums",
|
||||
"type": "boolean"
|
||||
},
|
||||
"linenums_style": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.linenums_style",
|
||||
"enum": [
|
||||
"inline",
|
||||
"pymdownx-inline",
|
||||
"table"
|
||||
]
|
||||
},
|
||||
"anchor_linenums": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.anchor_linenums",
|
||||
"type": "boolean"
|
||||
},
|
||||
"line_spans": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.line_spans",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "InlineHilite – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#inlinehilite",
|
||||
"enum": [
|
||||
"pymdownx.inlinehilite"
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Keys – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#keys",
|
||||
"enum": [
|
||||
"pymdownx.keys"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.keys": {
|
||||
"title": "Keys – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#keys",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"separator": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/mark/#options",
|
||||
"type": "string",
|
||||
"default": "+"
|
||||
},
|
||||
"strict": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/mark/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"camel_case": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/mark/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"key_map": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/mark/#options",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "MagicLink – Python Markdown Extensions",
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
|
||||
"enum": [
|
||||
"pymdownx.magiclink"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.magiclink": {
|
||||
"title": "MagicLink – Python Markdown Extensions",
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"hide_protocol":{
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"labels": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#labels",
|
||||
"type": "object",
|
||||
"default": {
|
||||
"commit": "Commit",
|
||||
"compare": "Compare",
|
||||
"issue": "Issue",
|
||||
"pull": "Pull Request",
|
||||
"mention": "User",
|
||||
"repository": "Repository"
|
||||
}
|
||||
},
|
||||
"normalize_issue_symbols": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"user": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"provider": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "string",
|
||||
"default": "github"
|
||||
},
|
||||
"repo": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "string",
|
||||
"repo": ""
|
||||
},
|
||||
"repo_url_shorthand": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"repo_url_shortener": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"social_url_shorthand": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"social_url_shortener": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"shortener_user_exclude": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#user-excludes",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"user",
|
||||
"repo"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Mark – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
|
||||
"enum": [
|
||||
"pymdownx.mark"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.mark": {
|
||||
"title": "Mark – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"smart_mark": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/mark/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "SmartSymbols – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#smartsymbols",
|
||||
"enum": [
|
||||
"pymdownx.smartsymbols"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.smartsymbols": {
|
||||
"title": "SmartSymbols – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#smartsymbols",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"trademark": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"copyright": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"registered": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"care_of": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"plusminus": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"arrows": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"notequal": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"fractions": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"ordinal_numbers": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.snippets": {
|
||||
"title": "Snippets – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#snippets",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"base_path": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"auto_append": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"check_paths": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"url_download": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"url_max_size": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "integer",
|
||||
"default": 33554432
|
||||
},
|
||||
"url_timeout": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "number",
|
||||
"default": 10.0
|
||||
},
|
||||
"url_request_headers": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#options",
|
||||
"type": "object",
|
||||
"default": {}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"title": "Snippets – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#snippets",
|
||||
"enum": [
|
||||
"pymdownx.snippets"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "SuperFences – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences",
|
||||
"enum": [
|
||||
"pymdownx.superfences"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.superfences": {
|
||||
"title": "SuperFences – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"custom_fences": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.superfences.custom_fences",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.superfences.custom_fences",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#custom-fences",
|
||||
"type": "string"
|
||||
},
|
||||
"class": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#custom-fences",
|
||||
"type": "string"
|
||||
},
|
||||
"format": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#custom-fences",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.tabbed": {
|
||||
"title": "Tabbed – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tabbed",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"alternate_style": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.alternate_style",
|
||||
"type": "boolean",
|
||||
"enum": [
|
||||
true
|
||||
],
|
||||
"default": true
|
||||
},
|
||||
"combine_header_slug": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.combine_header_slug",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"slugify": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.slugify",
|
||||
"default": "!!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"alternate_style"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Tasklist – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist",
|
||||
"enum": [
|
||||
"pymdownx.tasklist"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.tasklist": {
|
||||
"title": "Tasklist – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"custom_checkbox": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tasklist.custom_checkbox",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"clickable_checkbox": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tasklist.clickable_checkbox",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Tilde – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
|
||||
"enum": [
|
||||
"pymdownx.tilde"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pymdownx.tilde": {
|
||||
"title": "Tilde – Python Markdown Extensions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"smart_delete": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/tilde/#options",
|
||||
"type": "boolean"
|
||||
},
|
||||
"delete": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/tilde/#options",
|
||||
"type": "boolean"
|
||||
},
|
||||
"subscript": {
|
||||
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/tilde/#options",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
422
schema/extra.json
Normal file
422
schema/extra.json
Normal file
@ -0,0 +1,422 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Extra configuration",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"homepage": {
|
||||
"title": "Homepage link (when clicking on logo)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#logo",
|
||||
"type": "string"
|
||||
},
|
||||
"analytics": {
|
||||
"title": "Analytics provider",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#google-analytics",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"title": "Analytics provider",
|
||||
"anyOf": [
|
||||
{
|
||||
"title": "Google Analytics",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#google-analytics",
|
||||
"enum": [
|
||||
"google"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"property": {
|
||||
"anyOf": [
|
||||
{
|
||||
"title": "Google Analytics 4",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#google-analytics",
|
||||
"pattern": "^G-\\w{10}$"
|
||||
},
|
||||
{
|
||||
"title": "Universal Analytics",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#google-analytics",
|
||||
"pattern": "^UA-\\w{9}-\\w$"
|
||||
},
|
||||
{
|
||||
"title": "Unknown property",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#google-analytics",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"feedback": {
|
||||
"title": "Was this page helpful?",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#was-this-page-helpful",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"title": "Feedback widget title",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#was-this-page-helpful",
|
||||
"type": "string",
|
||||
"default": "Was this page helpful?"
|
||||
},
|
||||
"ratings": {
|
||||
"title": "Feedback ratings",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#was-this-page-helpful",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Feedback rating",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"icon": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"name": {
|
||||
"title": "Feedback rating name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#+analytics.feedback.ratings.name",
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"title": "Feedback rating data",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#+analytics.feedback.ratings.data",
|
||||
"type": "number"
|
||||
},
|
||||
"note": {
|
||||
"title": "Feedback rating data",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#+analytics.feedback.ratings.note",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"icon",
|
||||
"name",
|
||||
"data",
|
||||
"note"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"title"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"provider",
|
||||
"property"
|
||||
],
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "feedback (default)",
|
||||
"body": {
|
||||
"feedback": {
|
||||
"title": "${1:Was this page helpful}",
|
||||
"ratings": [
|
||||
{
|
||||
"icon": "${2:material/emoticon-happy-outline}",
|
||||
"name": "${3:This page was helpful}",
|
||||
"data": 1,
|
||||
"note": "${4:Thanks for your feedback!}"
|
||||
},
|
||||
{
|
||||
"icon": "${5:material/emoticon-sad-outline}",
|
||||
"name": "${6:This page could be improved}",
|
||||
"data": 0,
|
||||
"note": "${7:Thanks for your feedback!}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"annotate": {
|
||||
"title": "Custom selectors for annotations",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#custom-selectors",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
".*": {
|
||||
"title": "Custom selector",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#custom-selectors",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^\\.\\w+"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"consent": {
|
||||
"title": "Cookie consent",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#cookie-consent",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"title": "Cookie consent title",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.title",
|
||||
"type": "string",
|
||||
"default": "Cookie consent"
|
||||
},
|
||||
"description": {
|
||||
"title": "Cookie consent description",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.description",
|
||||
"type": "string"
|
||||
},
|
||||
"cookies": {
|
||||
"title": "Cookies",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.cookies",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"analytics": {
|
||||
"$ref": "#/definitions/cookie"
|
||||
},
|
||||
"github": {
|
||||
"$ref": "#/definitions/cookie"
|
||||
}
|
||||
},
|
||||
"patternProperties": {
|
||||
"\\w+": {
|
||||
"$ref": "#/definitions/cookie"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "analytics (default)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.cookies",
|
||||
"body": {
|
||||
"analytics": {
|
||||
"name": "Google Analytics",
|
||||
"checked": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "github (default)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.cookies",
|
||||
"body": {
|
||||
"analytics": {
|
||||
"name": "GitHub",
|
||||
"checked": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"actions": {
|
||||
"title": "Cookie consent actions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.actions",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Button to accept cookies",
|
||||
"enum": [
|
||||
"accept"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Button to reject cookies",
|
||||
"enum": [
|
||||
"reject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Button to manage settings",
|
||||
"enum": [
|
||||
"manage"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "actions (default)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+consent.actions",
|
||||
"body": {
|
||||
"actions": [
|
||||
"accept",
|
||||
"manage"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"required": [
|
||||
"title",
|
||||
"description"
|
||||
]
|
||||
},
|
||||
"social": {
|
||||
"title": "Social links",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/#social-links",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Social link",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"icon": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"link": {
|
||||
"title": "Social link",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/#+social.link",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"title": "Social link name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/#+social.name",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"icon",
|
||||
"link"
|
||||
]
|
||||
}
|
||||
},
|
||||
"alternate": {
|
||||
"title": "Site language selector",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#site-language-selector",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Alternate language",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#site-language-selector",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"title": "Alternate language name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#+alternate.name",
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"title": "Alternate language link",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#+alternate.link",
|
||||
"type": "string"
|
||||
},
|
||||
"lang": {
|
||||
"title": "Alternate language code (ISO 639-1)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#+alternate.lang",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name",
|
||||
"link",
|
||||
"lang"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": {
|
||||
"title": "Tag identifiers",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/#tag-icons-and-identifiers",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
".*": {
|
||||
"title": "Tag identifier mapping",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/#tag-icons-and-identifiers",
|
||||
"pattern": "^[\\w-]+$"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"title": "Versioning",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/#versioning",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"title": "Versioning provider",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/#versioning",
|
||||
"enum": [
|
||||
"mike"
|
||||
]
|
||||
},
|
||||
"default": {
|
||||
"title": "Default version",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/#version-warning",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": "stable"
|
||||
}
|
||||
}
|
||||
},
|
||||
"generator": {
|
||||
"title": "Generator notice",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/#generator-notice",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": true,
|
||||
"definitions": {
|
||||
"cookie": {
|
||||
"title": "Cookie",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#cookie-consent",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"title": "Cookie name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#cookie-consent",
|
||||
"type": "string"
|
||||
},
|
||||
"checked": {
|
||||
"title": "Initial state",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#cookie-consent",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Cookie name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#cookie-consent",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "assets/icons.json"
|
||||
},
|
||||
{
|
||||
"title": "Unknown icon",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "analytics (default)",
|
||||
"body": {
|
||||
"analytics": {
|
||||
"provider": "${1:google}",
|
||||
"property": "${2:UA-XXXXXXXX-X}"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
34
schema/nav.json
Normal file
34
schema/nav.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Navigation tree",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#nav",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"title": "Navigation item",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#nav",
|
||||
"pattern": "\\.md$"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#nav",
|
||||
"patternProperties": {
|
||||
".*": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Navigation item",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#nav",
|
||||
"pattern": "\\.md$"
|
||||
},
|
||||
{
|
||||
"$ref": "#"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"additionalItems": false
|
||||
}
|
131
schema/plugins.json
Normal file
131
schema/plugins.json
Normal file
@ -0,0 +1,131 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Plugins",
|
||||
"markdownDescription": "https://www.mkdocs.org/dev-guide/plugins/",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/built-in"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/external"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/external-community"
|
||||
}
|
||||
]
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1,
|
||||
"definitions": {
|
||||
"built-in": {
|
||||
"description": "Built-in plugins",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "plugins/blog.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/group.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/info.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/meta.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/offline.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/optimize.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/privacy.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/projects.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/search.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/social.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/tags.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/typeset.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"external": {
|
||||
"description": "External plugins, schema provided by us",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "plugins/external/gen-files.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/git-authors.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/git-committers.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/git-revision-date.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/literate-nav.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/macros.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/minify.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/redirects.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/external/section-index.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"external-community": {
|
||||
"description": "External plugins, schema provided by our community",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-material-relative-language-selector/master/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/Guts/mkdocs-rss-plugin/main/docs/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/timvink/mkdocs-git-revision-date-localized-plugin/master/docs/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/blueswen/mkdocs-glightbox/main/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/prcr/mkdocs-meta-descriptions-plugin/main/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/mkdocstrings/mkdocstrings/master/docs/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/pawamoy/mkdocs-coverage/master/docs/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/pawamoy/mkdocs-spellcheck/master/docs/schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/pawamoy/markdown-exec/master/docs/schema.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
365
schema/plugins/blog.json
Normal file
365
schema/plugins/blog.json
Normal file
@ -0,0 +1,365 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in blog plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/",
|
||||
"enum": [
|
||||
"blog"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blog": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"blog_dir": {
|
||||
"title": "Blog directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.blog_dir",
|
||||
"type": "string",
|
||||
"default": "blog"
|
||||
},
|
||||
"blog_toc": {
|
||||
"title": "Blog table of contents",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.blog_toc",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"post_dir": {
|
||||
"title": "Blog posts directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_dir",
|
||||
"type": "string",
|
||||
"default": "\"{blog\\}/posts\""
|
||||
},
|
||||
"post_date_format": {
|
||||
"title": "Format string for post dates",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_date_format",
|
||||
"default": "long",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"full",
|
||||
"long",
|
||||
"medium",
|
||||
"short"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"post_url_date_format": {
|
||||
"title": "Format string for post dates in URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_url_date_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"yyyy",
|
||||
"yyyy/MM",
|
||||
"yyyy/MM/dd"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"default": "yyyy"
|
||||
},
|
||||
"post_url_format": {
|
||||
"title": "Format string for post URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_url_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"\"{date}/{file}\"",
|
||||
"\"{date}/{slug}\"",
|
||||
"\"{file}\"",
|
||||
"\"{slug}\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"post_url_max_categories": {
|
||||
"title": "Number of categories in post URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_url_max_categories",
|
||||
"type": "number",
|
||||
"default": 1
|
||||
},
|
||||
"post_slugify": {
|
||||
"title": "Post slugify function",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_slugify",
|
||||
"default": "!!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}"
|
||||
},
|
||||
"post_slugify_separator": {
|
||||
"title": "Post slugify separator",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_slugify_separator",
|
||||
"type": "string",
|
||||
"default": "\"-\""
|
||||
},
|
||||
"post_excerpt": {
|
||||
"title": "Post excerpts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_excerpt",
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Post excerpts are optional",
|
||||
"enum": [
|
||||
"optional"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Post excerpts are required, thus the build will fail",
|
||||
"enum": [
|
||||
"required"
|
||||
]
|
||||
}
|
||||
],
|
||||
"default": "optional"
|
||||
},
|
||||
"post_excerpt_max_authors": {
|
||||
"title": "Number of authors to render in post excerpts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_excerpt_max_authors",
|
||||
"type": "number",
|
||||
"default": 1
|
||||
},
|
||||
"post_excerpt_max_categories": {
|
||||
"title": "Number of categories to render in post excerpts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_excerpt_max_categories",
|
||||
"type": "number",
|
||||
"default": 5
|
||||
},
|
||||
"post_excerpt_separator": {
|
||||
"title": "Post excerpt separator",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_excerpt_separator",
|
||||
"type": "string",
|
||||
"default": "<!-- more -->"
|
||||
},
|
||||
"post_readtime": {
|
||||
"title": "Post reading time computation",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_readtime",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"post_readtime_words_per_minute": {
|
||||
"title": "Post reading time words per minute",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.post_readtime_words_per_minute",
|
||||
"type": "number",
|
||||
"default": 265
|
||||
},
|
||||
"archive": {
|
||||
"title": "Archive",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.archive",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"archive_name": {
|
||||
"title": "Archive name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.archive_name",
|
||||
"type": "string",
|
||||
"default": "Archive"
|
||||
},
|
||||
"archive_date_format": {
|
||||
"title": "Format string for archive dates",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.archive_date_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"yyyy",
|
||||
"MMMM yyyy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"default": "yyyy"
|
||||
},
|
||||
"archive_url_date_format": {
|
||||
"title": "Format string for archive dates in URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.archive_url_date_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"yyyy",
|
||||
"yyyy/MM"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"default": "yyyy"
|
||||
},
|
||||
"archive_url_format": {
|
||||
"title": "Format string for archive URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.archive_url_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"\"archive/{date}\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"archive_toc": {
|
||||
"title": "Archive table of contents",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.archive_toc",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"categories": {
|
||||
"title": "Categories",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"categories_name": {
|
||||
"title": "Categories name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories_name",
|
||||
"type": "string",
|
||||
"default": "Categories"
|
||||
},
|
||||
"categories_url_format": {
|
||||
"title": "Format string for category URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories_url_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"\"category/{slug}\"",
|
||||
"\"{slug}\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"categories_slugify": {
|
||||
"title": "Categories slugify function",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories_slugify",
|
||||
"default": "!!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}"
|
||||
},
|
||||
"categories_slugify_separator": {
|
||||
"title": "Categories slugify separator",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories_slugify_separator",
|
||||
"type": "string",
|
||||
"default": "\"-\""
|
||||
},
|
||||
"categories_allowed": {
|
||||
"title": "Categories allowed",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories_allowed",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"default": []
|
||||
},
|
||||
"categories_toc": {
|
||||
"title": "Categories table of contents",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.categories_toc",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"pagination": {
|
||||
"title": "Pagination",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.pagination",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"pagination_per_page": {
|
||||
"title": "Posts per page",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.pagination_per_page",
|
||||
"type": "number",
|
||||
"default": 10
|
||||
},
|
||||
"pagination_url_format": {
|
||||
"title": "Format string for pagination URLs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.pagination_url_format",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"\"page/{page}\"",
|
||||
"\"{page}\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pagination_template": {
|
||||
"title": "Template string for pagination",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.pagination_template",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"~2~",
|
||||
"$link_first $link_previous ~2~ $link_next $link_last",
|
||||
"$link_previous $page $link_next"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"default": "~2~"
|
||||
},
|
||||
"pagination_keep_content": {
|
||||
"title": "Paginated indexes inherit content",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.pagination_keep_content",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"authors": {
|
||||
"title": "Author info",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.authors",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"authors_file": {
|
||||
"title": "Authors file",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.authors_file",
|
||||
"type": "string",
|
||||
"default": "\"{blog\\}/.authors.yml\""
|
||||
},
|
||||
"draft": {
|
||||
"title": "Render posts marked as drafts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.draft",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"draft_on_serve": {
|
||||
"title": "Render posts marked as drafts when previewing",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.draft_on_serve",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"draft_if_future_date": {
|
||||
"title": "Automatically mark posts with future dates as drafts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/#config.draft_if_future_date",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
29
schema/plugins/external/gen-files.json
vendored
Normal file
29
schema/plugins/external/gen-files.json
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Generate pages during the build",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://github.com/oprypin/mkdocs-gen-files",
|
||||
"enum": [
|
||||
"git-authors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"gen-files": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"scripts": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": ["object", "null"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
41
schema/plugins/external/git-authors.json
vendored
Normal file
41
schema/plugins/external/git-authors.json
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Add git authors to pages",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://timvink.github.io/mkdocs-git-authors-plugin/",
|
||||
"enum": [
|
||||
"git-authors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"git-authors": {
|
||||
"markdownDescription": "https://timvink.github.io/mkdocs-git-authors-plugin/options.html",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://timvink.github.io/mkdocs-git-authors-plugin/options.html#enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"exclude": {
|
||||
"title": "List of Markdown file patterns",
|
||||
"markdownDescription": "https://timvink.github.io/mkdocs-git-authors-plugin/options.html#exclude",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"pattern": "(\\*|\\.md)$"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
45
schema/plugins/external/git-committers.json
vendored
Normal file
45
schema/plugins/external/git-committers.json
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Add git contributors to pages",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://github.com/ojacques/mkdocs-git-committers-plugin-2",
|
||||
"enum": [
|
||||
"git-committers"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"git-committers": {
|
||||
"markdownDescription": "https://github.com/ojacques/mkdocs-git-committers-plugin-2",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#+git-committers.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"repository": {
|
||||
"title": "Repository slug",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#+git-committers.repository",
|
||||
"type": "string"
|
||||
},
|
||||
"branch": {
|
||||
"title": "Repository branch",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#+git-committers.branch",
|
||||
"type": "string",
|
||||
"default": "master"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"repository"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
42
schema/plugins/external/git-revision-date.json
vendored
Normal file
42
schema/plugins/external/git-revision-date.json
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Add git revision date to pages",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin",
|
||||
"enum": [
|
||||
"git-revision-date"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"git-revision-date": {
|
||||
"markdownDescription": "https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable_if_env": {
|
||||
"title": "Enable plugin when environment variable is set",
|
||||
"markdownDescription": "https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin#options",
|
||||
"type": "string"
|
||||
},
|
||||
"modify_md": {
|
||||
"title": "Enable plugin to be used in Markdown files",
|
||||
"markdownDescription": "https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"as_datetime": {
|
||||
"title": "Output as Python datetime",
|
||||
"markdownDescription": "https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
37
schema/plugins/external/literate-nav.json
vendored
Normal file
37
schema/plugins/external/literate-nav.json
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"title": "Configure navigation in Markdown instead of YAML",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
|
||||
"enum": [
|
||||
"literate-nav"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"literate-nav": {
|
||||
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nav_file": {
|
||||
"title": "The name of the file to read to determine the navigation for a particular directory under `docs_dir`",
|
||||
"markdownDescription": "https://oprypin.github.io/mkdocs-literate-nav/reference.html#nav_file",
|
||||
"type": "string",
|
||||
"default": "SUMMARY.md"
|
||||
},
|
||||
"implicit_index": {
|
||||
"title": "If set and a directory has a file named `index.md` or `README.md`, but the literate nav for that directory that never includes it, it will be inserted as the first item of the nav",
|
||||
"markdownDescription": "https://oprypin.github.io/mkdocs-literate-nav/reference.html#implicit_index",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
72
schema/plugins/external/macros.json
vendored
Normal file
72
schema/plugins/external/macros.json
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"title": "Use variables and macros in Markdown",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://github.com/fralau/mkdocs_macros_plugin",
|
||||
"enum": [
|
||||
"macros"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"macros": {
|
||||
"markdownDescription": "",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"module_name": {
|
||||
"title": "Name of the Python module containing macros, filters and variables",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/#configuration-of-the-plugin",
|
||||
"type": "string",
|
||||
"default": "main"
|
||||
},
|
||||
"modules": {
|
||||
"title": "List of preinstalled Python modules, i.e. listed by `pip list`",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/#configuration-of-the-plugin",
|
||||
"type": "array"
|
||||
},
|
||||
"include_dir": {
|
||||
"title": "Directory for including external files",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#changing-the-directory-of-the-includes",
|
||||
"type": "string"
|
||||
},
|
||||
"include_yaml": {
|
||||
"title": "List of yaml files or `key: filename` pairs to be included",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#including-external-yaml-files",
|
||||
"type": "array"
|
||||
},
|
||||
"j2_block_start_string": {
|
||||
"title": "Non-standard Jinja2 marker for start of block",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#solution-4-altering-the-syntax-of-jinja2-for-mkdocs-macros",
|
||||
"type": "string"
|
||||
},
|
||||
"j2_block_end_string": {
|
||||
"title": "Non-standard Jinja2 marker for end of block",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#solution-4-altering-the-syntax-of-jinja2-for-mkdocs-macros",
|
||||
"type": "string"
|
||||
},
|
||||
"j2_variable_start_string": {
|
||||
"title": "Non-standard Jinja2 marker for start of variable",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#solution-4-altering-the-syntax-of-jinja2-for-mkdocs-macros",
|
||||
"type": "string"
|
||||
},
|
||||
"j2_variable_end_string": {
|
||||
"title": "Non-standard Jinja2 marker for end of variable",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#solution-4-altering-the-syntax-of-jinja2-for-mkdocs-macros",
|
||||
"type": "string"
|
||||
},
|
||||
"on_error_fail": {
|
||||
"title": "Stop build/serve when macro error happens",
|
||||
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#can-i-make-mkdocs-macros-build-process-to-fail-in-case-of-error-instead-of-displaying-the-error-on-the-page",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
76
schema/plugins/external/minify.json
vendored
Normal file
76
schema/plugins/external/minify.json
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Minify HTML, JavaScript and CSS during the build",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"minify": {
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin",
|
||||
"type": "object",
|
||||
"dependencies": {
|
||||
"minify_js": [
|
||||
"js_files"
|
||||
],
|
||||
"minify_css": [
|
||||
"css_files"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"minify_html": {
|
||||
"title": "Minify HTML files",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"minify_js": {
|
||||
"title": "Minify JavaScript files",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"minify_css": {
|
||||
"title": "Minify CSS files",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"htmlmin_opts": {
|
||||
"title": "Options for HTML minifier",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "object"
|
||||
},
|
||||
"cache_safe": {
|
||||
"title": "Add hash to Javascript and CSS file names",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"js_files": {
|
||||
"title": "JavaScript files to minify",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to JavaScript file",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"pattern": "\\.js$"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"css_files": {
|
||||
"title": "CSS files to minify",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to CSS file",
|
||||
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
|
||||
"pattern": "\\.css$"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
51
schema/plugins/external/redirects.json
vendored
Normal file
51
schema/plugins/external/redirects.json
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Add redirects when moving pages to new locations",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"redirects": {
|
||||
"markdownDescription": "https://github.com/mkdocs/mkdocs-redirects",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"redirect_maps": {
|
||||
"title": "Mapping of Markdown files",
|
||||
"markdownDescription": "https://github.com/mkdocs/mkdocs-redirects#using",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"\\.md$": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Internal redirect",
|
||||
"markdownDescription": "https://github.com/mkdocs/mkdocs-redirects#using",
|
||||
"pattern": "\\.md(#\\S+)?$"
|
||||
},
|
||||
{
|
||||
"title": "External redirect",
|
||||
"markdownDescription": "https://github.com/mkdocs/mkdocs-redirects#using",
|
||||
"pattern": "^https?:"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "Internal redirect",
|
||||
"body": {
|
||||
"${1:from}.md": "${2:to}.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "External redirect",
|
||||
"body": {
|
||||
"${1:from}.md": "https://${2:to.url}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
19
schema/plugins/external/section-index.json
vendored
Normal file
19
schema/plugins/external/section-index.json
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Add index section pages to navigation",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://github.com/oprypin/mkdocs-section-index",
|
||||
"enum": [
|
||||
"section-index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"section-index": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
29
schema/plugins/group.json
Normal file
29
schema/plugins/group.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in group plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"group": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/group/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/group/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"plugins": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/group/#config.plugins",
|
||||
"$ref": "../plugins.json"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
49
schema/plugins/info.json
Normal file
49
schema/plugins/info.json
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in info plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/",
|
||||
"enum": [
|
||||
"info"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"info": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"enabled_on_serve": {
|
||||
"title": "Enable plugin when previewing",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/#config.enabled_on_serve",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"archive": {
|
||||
"title": "Enable creation of archive",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/#config.archive",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"archive_stop_on_violation": {
|
||||
"title": "Stop creation of archive on violation",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/#config.archive_stop_on_violation",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
37
schema/plugins/meta.json
Normal file
37
schema/plugins/meta.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in meta plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/meta/",
|
||||
"enum": [
|
||||
"meta"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"meta": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/meta/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/meta/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"meta_file": {
|
||||
"title": "Meta file name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/meta/#config.meta_file",
|
||||
"pattern": "\\.yml$",
|
||||
"default": "\"**/.meta.yml\""
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
31
schema/plugins/offline.json
Normal file
31
schema/plugins/offline.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in offline plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/offline/",
|
||||
"enum": [
|
||||
"offline"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"offline": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/offline/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/offline/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
120
schema/plugins/optimize.json
Normal file
120
schema/plugins/optimize.json
Normal file
@ -0,0 +1,120 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in optimize plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/",
|
||||
"enum": [
|
||||
"optimize"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"optimize": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"concurrency": {
|
||||
"title": "Concurrency (number of CPUs)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.concurrency",
|
||||
"type": "number"
|
||||
},
|
||||
"cache": {
|
||||
"title": "Enable caching",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.cache",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"cache_dir": {
|
||||
"title": "Cache directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.cache_dir",
|
||||
"type": "string",
|
||||
"default": ".cache/plugins/optimize"
|
||||
},
|
||||
"optimize_png": {
|
||||
"title": "Optimization of PNGs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_png",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_png_speed": {
|
||||
"title": "Speed/quality tradeoff [1,10]",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_png_speed",
|
||||
"type": "number",
|
||||
"default": 4
|
||||
},
|
||||
"optimize_png_strip": {
|
||||
"title": "Strip unnecessary metadata from PNGs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_png_strip",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_jpg": {
|
||||
"title": "Optimization of JPGs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_jpg",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_jpg_quality": {
|
||||
"title": "Speed/quality tradeoff for pngquant [0,10]",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_jpg_quality",
|
||||
"type": "number",
|
||||
"default": 60
|
||||
},
|
||||
"optimize_jpg_progressive": {
|
||||
"title": "Progressive encoding (faster rendering)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_jpg_progressive",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_include": {
|
||||
"title": "Files or folders to include",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_include",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Files or folders matching this pattern will be included",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_include",
|
||||
"pattern": ".*"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"optimize_exclude": {
|
||||
"title": "Files or folders to exclude",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_exclude",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Files or folders matching this pattern will be excluded",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_exclude",
|
||||
"pattern": ".*"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"print_gain": {
|
||||
"title": "Print optimization gain",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.print_gain",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"print_gain_summary": {
|
||||
"title": "Print optimization gain summary",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.print_gain_summary",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
112
schema/plugins/privacy.json
Normal file
112
schema/plugins/privacy.json
Normal file
@ -0,0 +1,112 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in privacy plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/",
|
||||
"enum": [
|
||||
"privacy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"privacy": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"concurrency": {
|
||||
"title": "Concurrency (number of CPUs)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.concurrency",
|
||||
"type": "number"
|
||||
},
|
||||
"cache": {
|
||||
"title": "Enable caching",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.cache",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"cache_dir": {
|
||||
"title": "Cache directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.cache_dir",
|
||||
"type": "string",
|
||||
"default": ".cache/plugins/privacy"
|
||||
},
|
||||
"assets": {
|
||||
"title": "Process external assets",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"assets_fetch": {
|
||||
"title": "Download external assets",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_fetch",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"assets_fetch_dir": {
|
||||
"title": "Download external assets to this directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_fetch_dir",
|
||||
"type": "string",
|
||||
"default": "assets/external"
|
||||
},
|
||||
"assets_include": {
|
||||
"title": "External assets to include",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_include",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "External assets matching this pattern will be downloaded",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_include",
|
||||
"pattern": ".*"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"assets_exclude": {
|
||||
"title": "External assets to exclude",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_exclude",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "External assets matching this pattern will not be downloaded",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_exclude",
|
||||
"pattern": ".*"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"links": {
|
||||
"title": "Process external links",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.links",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"links_attr_map": {
|
||||
"title": "Custom attributes to add to external links",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.links_attr_map",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[\\w_]+$": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"links_noopener": {
|
||||
"title": "Behavior for external links that open in new windows",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.links_noopener",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
82
schema/plugins/projects.json
Normal file
82
schema/plugins/projects.json
Normal file
@ -0,0 +1,82 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in projects plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/",
|
||||
"enum": [
|
||||
"projects"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projects": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"concurrency": {
|
||||
"title": "Concurrency (number of CPUs)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.concurrency",
|
||||
"type": "number"
|
||||
},
|
||||
"cache": {
|
||||
"title": "Enable caching",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.cache",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"cache_dir": {
|
||||
"title": "Cache directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.cache_dir",
|
||||
"type": "string",
|
||||
"default": ".cache/plugins/projects"
|
||||
},
|
||||
"projects": {
|
||||
"title": "Enable projects",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.projects",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"projects_dir": {
|
||||
"title": "Projects directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.projects_dir",
|
||||
"type": "string",
|
||||
"default": "projects"
|
||||
},
|
||||
"projects_config_files": {
|
||||
"title": "Projects configuration files",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.projects_config_files",
|
||||
"type": "string",
|
||||
"default": "\"*/mkdocs.yml\""
|
||||
},
|
||||
"projects_config_transform": {
|
||||
"title": "Projects configuration transform",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.projects_config_transform",
|
||||
"type": "string",
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"body": "!!python/name:${1:module}.${2:function}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hosting": {
|
||||
"title": "Enable hoisting",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/projects/#config.hoisting",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
192
schema/plugins/search.json
Normal file
192
schema/plugins/search.json
Normal file
@ -0,0 +1,192 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in search plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/",
|
||||
"enum": [
|
||||
"search"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"search": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"lang": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/lang"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lang"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
}
|
||||
],
|
||||
"default": "en"
|
||||
},
|
||||
"separator": {
|
||||
"title": "Separator for indexing and query tokenization",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.separator",
|
||||
"type": "string"
|
||||
},
|
||||
"pipeline": {
|
||||
"title": "Text processing pipeline for indexing",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.pipeline",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"enum": [
|
||||
"stemmer",
|
||||
"stopWordFilter",
|
||||
"trimmer"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"jieba_dict": {
|
||||
"title": "Jieba dictionary replacement",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.jieba_dict",
|
||||
"type": "string"
|
||||
},
|
||||
"jieba_dict_user": {
|
||||
"title": "Jieba dictionary augmentation",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.jieba_dict_user",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
],
|
||||
"definitions": {
|
||||
"lang": {
|
||||
"title": "Site search language",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.lang",
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Site search language: Arabic",
|
||||
"enum": [
|
||||
"ar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Danish",
|
||||
"enum": [
|
||||
"da"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: German",
|
||||
"enum": [
|
||||
"de"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Dutch",
|
||||
"enum": [
|
||||
"du"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: English",
|
||||
"enum": [
|
||||
"en"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Spanish",
|
||||
"enum": [
|
||||
"es"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Finnish",
|
||||
"enum": [
|
||||
"fi"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: French",
|
||||
"enum": [
|
||||
"fr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Hungarian",
|
||||
"enum": [
|
||||
"hu"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Italian",
|
||||
"enum": [
|
||||
"it"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Japanese",
|
||||
"enum": [
|
||||
"ja"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Norwegian",
|
||||
"enum": [
|
||||
"no"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Portuguese",
|
||||
"enum": [
|
||||
"pt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Romanian",
|
||||
"enum": [
|
||||
"ro"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Russian",
|
||||
"enum": [
|
||||
"ru"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Swedish",
|
||||
"enum": [
|
||||
"sv"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Thai",
|
||||
"enum": [
|
||||
"th"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Turkish",
|
||||
"enum": [
|
||||
"tr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site search language: Vietnamese",
|
||||
"enum": [
|
||||
"vi"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
143
schema/plugins/social.json
Normal file
143
schema/plugins/social.json
Normal file
@ -0,0 +1,143 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in social plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/",
|
||||
"enum": [
|
||||
"social"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"social": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"concurrency": {
|
||||
"title": "Concurrency (number of CPUs)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.concurrency",
|
||||
"type": "number"
|
||||
},
|
||||
"cache": {
|
||||
"title": "Enable caching",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cache",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"cache_dir": {
|
||||
"title": "Cache directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cache_dir",
|
||||
"type": "string",
|
||||
"default": ".cache/plugins/social"
|
||||
},
|
||||
"cards": {
|
||||
"title": "Social cards",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"cards_dir": {
|
||||
"title": "Social cards directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_dir",
|
||||
"type": "string",
|
||||
"default": "assets/images/social"
|
||||
},
|
||||
"cards_layout_dir": {
|
||||
"title": "Social cards layout directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_layout_dir",
|
||||
"type": "string",
|
||||
"default": "layouts"
|
||||
},
|
||||
"cards_layout": {
|
||||
"title": "Social cards layout",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_layout",
|
||||
"default": "default",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"default",
|
||||
"default/accent",
|
||||
"default/invert",
|
||||
"default/variant"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cards_layout_options": {
|
||||
"title": "Social cards layout options",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_layout_options",
|
||||
"type": "object"
|
||||
},
|
||||
"cards_include": {
|
||||
"title": "Pages or folders to include",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_include",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Pages or folders matching this pattern will be included",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_include",
|
||||
"pattern": ".*"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"cards_exclude": {
|
||||
"title": "Pages or folders to exclude",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_exclude",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Pages or folders matching this pattern will be excluded",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.cards_exclude",
|
||||
"pattern": ".*"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"debug": {
|
||||
"title": "Debug mode",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.debug",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"debug_on_build": {
|
||||
"title": "Always disable debug mode on build",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.debug_on_build",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"debug_grid": {
|
||||
"title": "Debug grid",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.debug_grid",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"debug_grid_step": {
|
||||
"title": "Debug grid step size",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.debug_grid_step",
|
||||
"type": "number",
|
||||
"default": 32
|
||||
},
|
||||
"debug_color": {
|
||||
"title": "Debug color",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/social/#config.debug_color",
|
||||
"type": "string",
|
||||
"default": "yellow"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
93
schema/plugins/tags.json
Normal file
93
schema/plugins/tags.json
Normal file
@ -0,0 +1,93 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in tags plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/",
|
||||
"enum": [
|
||||
"tags"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tags": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"tags_file": {
|
||||
"title": "Markdown file to render tags index",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_file",
|
||||
"pattern": "\\.md$",
|
||||
"default": "tags.md"
|
||||
},
|
||||
"tags_extra_files": {
|
||||
"title": "Markdown files to render additional tags indexes",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_extra_files",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"\\.md$": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"tags_slugify": {
|
||||
"title": "Tags slugify function",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_slugify",
|
||||
"default": "!!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}"
|
||||
},
|
||||
"tags_slugify_separator": {
|
||||
"title": "Tags slugify separator",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_slugify_separator",
|
||||
"type": "string",
|
||||
"default": "\"-\""
|
||||
},
|
||||
"tags_compare": {
|
||||
"title": "Sort tags by this function",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_compare",
|
||||
"default": "!!python/name:material.plugins.tags.casefold"
|
||||
},
|
||||
"tags_compare_reverse": {
|
||||
"title": "Soft tags in reverse",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_compare_reverse",
|
||||
"default": false
|
||||
},
|
||||
"tags_pages_compare": {
|
||||
"title": "Sort tags pages by this function",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_pages_compare",
|
||||
"default": "!!python/name:material.plugins.tags.page_title"
|
||||
},
|
||||
"tags_pages_compare_reverse": {
|
||||
"title": "Soft tags pages in reverse",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_pages_compare_reverse",
|
||||
"default": false
|
||||
},
|
||||
"tags_allowed": {
|
||||
"title": "Tags allowed",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/tags/#config.tags_allowed",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"default": []
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
31
schema/plugins/typeset.json
Normal file
31
schema/plugins/typeset.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in typeset plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/typeset/",
|
||||
"enum": [
|
||||
"typeset"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"typeset": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/typeset/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/typeset/#config.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
990
schema/theme.json
Normal file
990
schema/theme.json
Normal file
@ -0,0 +1,990 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Theme configuration",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"title": "Theme name",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#name",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": [
|
||||
"material"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"default": "material"
|
||||
},
|
||||
"custom_dir": {
|
||||
"title": "Directory with theme overrides",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#setup-and-theme-structure",
|
||||
"type": "string",
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"body": "${1:overrides}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"static_templates": {
|
||||
"title": "Static templates to render",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#static_templates",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Path to HTML file",
|
||||
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#static_templates",
|
||||
"pattern": "\\.html$"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"language": {
|
||||
"title": "Site language",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/",
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Site language: Custom",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#custom-translations",
|
||||
"enum": [
|
||||
"custom"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Afrikaans",
|
||||
"enum": [
|
||||
"af"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Arabic",
|
||||
"enum": [
|
||||
"ar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Bulgarian",
|
||||
"enum": [
|
||||
"bg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Bengali (Bangla)",
|
||||
"enum": [
|
||||
"bn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Catalan",
|
||||
"enum": [
|
||||
"ca"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Czech",
|
||||
"enum": [
|
||||
"cs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Danish",
|
||||
"enum": [
|
||||
"da"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: German",
|
||||
"enum": [
|
||||
"de"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Greek",
|
||||
"enum": [
|
||||
"el"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: English",
|
||||
"enum": [
|
||||
"en"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Esperanto",
|
||||
"enum": [
|
||||
"eo"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Spanish",
|
||||
"enum": [
|
||||
"es"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Estonian",
|
||||
"enum": [
|
||||
"et"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Persian (Farsi)",
|
||||
"enum": [
|
||||
"fa"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Finnish",
|
||||
"enum": [
|
||||
"fi"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: French",
|
||||
"enum": [
|
||||
"fr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Galician",
|
||||
"enum": [
|
||||
"gl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Hebrew",
|
||||
"enum": [
|
||||
"he"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Hindi",
|
||||
"enum": [
|
||||
"hi"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Croatian",
|
||||
"enum": [
|
||||
"hr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Hungarian",
|
||||
"enum": [
|
||||
"hu"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Armenian",
|
||||
"enum": [
|
||||
"hy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Indonesian",
|
||||
"enum": [
|
||||
"id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Icelandic",
|
||||
"enum": [
|
||||
"is"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Italian",
|
||||
"enum": [
|
||||
"it"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Japanese",
|
||||
"enum": [
|
||||
"ja"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Georgian",
|
||||
"enum": [
|
||||
"ka"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Kannada",
|
||||
"enum": [
|
||||
"kn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Korean",
|
||||
"enum": [
|
||||
"ko"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Lithuanian",
|
||||
"enum": [
|
||||
"lt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Latvian",
|
||||
"enum": [
|
||||
"lv"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Macedonian",
|
||||
"enum": [
|
||||
"mk"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Mongolian",
|
||||
"enum": [
|
||||
"mn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Bahasa Malaysia",
|
||||
"enum": [
|
||||
"ms"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Burmese",
|
||||
"enum": [
|
||||
"my"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Dutch",
|
||||
"enum": [
|
||||
"nl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Norwegian (Bokmål)",
|
||||
"enum": [
|
||||
"nb"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Norwegian (Nynorsk)",
|
||||
"enum": [
|
||||
"nn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Polish",
|
||||
"enum": [
|
||||
"pl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Portuguese",
|
||||
"enum": [
|
||||
"pt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Portuguese (Brasilian)",
|
||||
"enum": [
|
||||
"pt-BR"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Romanian",
|
||||
"enum": [
|
||||
"ro"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Russian",
|
||||
"enum": [
|
||||
"ru"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Sanskrit",
|
||||
"enum": [
|
||||
"sa"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Serbo-Croatian",
|
||||
"enum": [
|
||||
"sh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Sinhalese",
|
||||
"enum": [
|
||||
"si"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Slovak",
|
||||
"enum": [
|
||||
"sk"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Slovenian",
|
||||
"enum": [
|
||||
"sl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Serbian",
|
||||
"enum": [
|
||||
"sr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Swedish",
|
||||
"enum": [
|
||||
"sv"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Telugu",
|
||||
"enum": [
|
||||
"te"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Thai",
|
||||
"enum": [
|
||||
"th"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Tagalog",
|
||||
"enum": [
|
||||
"tl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Turkish",
|
||||
"enum": [
|
||||
"tr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Ukrainian",
|
||||
"enum": [
|
||||
"uk"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Urdu",
|
||||
"enum": [
|
||||
"ur"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Uzbek",
|
||||
"enum": [
|
||||
"uz"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Vietnamese",
|
||||
"enum": [
|
||||
"vi"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Chinese (Simplified)",
|
||||
"enum": [
|
||||
"zh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Chinese (Traditional)",
|
||||
"enum": [
|
||||
"zh-Hant"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Site language: Chinese (Taiwanese)",
|
||||
"enum": [
|
||||
"zh-TW"
|
||||
]
|
||||
}
|
||||
],
|
||||
"default": "en"
|
||||
},
|
||||
"direction": {
|
||||
"title": "Directionality",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#directionality",
|
||||
"enum": [
|
||||
"ltr",
|
||||
"rtl"
|
||||
]
|
||||
},
|
||||
"favicon": {
|
||||
"title": "Favicon",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#favicon",
|
||||
"pattern": "\\.(ico|png|svg|jpe?g)$",
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"body": "${1:path/to/file}.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"logo": {
|
||||
"title": "Logo",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#logo",
|
||||
"pattern": "\\.(png|svg|jpe?g)$",
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"body": "${1:path/to/file}.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"title": "Icons",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"edit": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"view": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"logo": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"repo": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"admonition": {
|
||||
"title": "Admonition icon",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/admonitions/#admonition-icons",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"note": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"abstract": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"info": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"tip": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"success": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"question": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"warning": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"failure": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"danger": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"bug": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"example": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"quote": {
|
||||
"$ref": "#/definitions/icon"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "note",
|
||||
"body": "note: ${1:material/pencil-circle}"
|
||||
},
|
||||
{
|
||||
"label": "abstract",
|
||||
"body": "abstract: ${1:material/clipboard-text}"
|
||||
},
|
||||
{
|
||||
"label": "info",
|
||||
"body": "info: ${1:material/information}"
|
||||
},
|
||||
{
|
||||
"label": "tip",
|
||||
"body": "tip: ${1:material/fire}"
|
||||
},
|
||||
{
|
||||
"label": "success",
|
||||
"body": "success: ${1:material/check}"
|
||||
},
|
||||
{
|
||||
"label": "question",
|
||||
"body": "question: ${1:material/help-circle}"
|
||||
},
|
||||
{
|
||||
"label": "warning",
|
||||
"body": "warning: ${1:material/alert}"
|
||||
},
|
||||
{
|
||||
"label": "failure",
|
||||
"body": "failure: ${1:material/close}"
|
||||
},
|
||||
{
|
||||
"label": "danger",
|
||||
"body": "danger: ${1:material/lightning-bolt-circle}"
|
||||
},
|
||||
{
|
||||
"label": "bug",
|
||||
"body": "bug: ${1:material/shield-bug}"
|
||||
},
|
||||
{
|
||||
"label": "example",
|
||||
"body": "example: ${1:material/test-tube}"
|
||||
},
|
||||
{
|
||||
"label": "quote",
|
||||
"body": "quote: ${1:material/format-quote-close}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag": {
|
||||
"title": "Tag icon",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/#tag-icons-and-identifiers",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[\\w-]+$": {
|
||||
"$ref": "#/definitions/icon"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "edit",
|
||||
"body": "edit: ${1:material/pencil}"
|
||||
},
|
||||
{
|
||||
"label": "logo",
|
||||
"body": "logo: ${1:material/library}"
|
||||
},
|
||||
{
|
||||
"label": "repo",
|
||||
"body": "repo: ${1:fontawesome/brands/git-alt}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"features": {
|
||||
"title": "Feature flags",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Mark as read",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-header/#mark-as-read",
|
||||
"enum": [
|
||||
"announce.dismiss"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Edit this page",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#code-actions",
|
||||
"enum": [
|
||||
"content.action.edit"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "View source of this page",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#code-actions",
|
||||
"enum": [
|
||||
"content.action.view"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Code annotations",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-annotations",
|
||||
"enum": [
|
||||
"content.code.annotate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Code copy button",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-copy-button",
|
||||
"enum": [
|
||||
"content.code.copy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Code selection button",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-selection-button",
|
||||
"enum": [
|
||||
"content.code.select"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Linked content tabs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/content-tabs/#linked-content-tabs",
|
||||
"enum": [
|
||||
"content.tabs.link"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Improved tooltips",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/tooltips/#improved-tooltips",
|
||||
"enum": [
|
||||
"content.tooltips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Header hides automatically when scrolling",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-header/#automatic-hiding",
|
||||
"enum": [
|
||||
"header.autohide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Navigation expansion",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-expansion",
|
||||
"enum": [
|
||||
"navigation.expand"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Navigation footer",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-footer",
|
||||
"enum": [
|
||||
"navigation.footer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Section index pages",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages",
|
||||
"enum": [
|
||||
"navigation.indexes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Instant loading",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#instant-loading",
|
||||
"enum": [
|
||||
"navigation.instant"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Navigation path (Breadcrumbs)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-path",
|
||||
"enum": [
|
||||
"navigation.path"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Navigation pruning",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-pruning",
|
||||
"enum": [
|
||||
"navigation.prune"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Navigation sections",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-sections",
|
||||
"enum": [
|
||||
"navigation.sections"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Navigation tabs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-tabs",
|
||||
"enum": [
|
||||
"navigation.tabs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sticky navigation tabs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#sticky-navigation-tabs",
|
||||
"enum": [
|
||||
"navigation.tabs.sticky"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Back-to-top button",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#back-to-top-button",
|
||||
"enum": [
|
||||
"navigation.top"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Anchor tracking",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#anchor-tracking",
|
||||
"enum": [
|
||||
"navigation.tracking"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Search higlighting",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-highlighting",
|
||||
"enum": [
|
||||
"search.highlight"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Search sharing",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-sharing",
|
||||
"enum": [
|
||||
"search.share"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Search suggestions",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-suggestions",
|
||||
"enum": [
|
||||
"search.suggest"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Integrated table of contents",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#anchor-following",
|
||||
"enum": [
|
||||
"toc.follow"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Integrated table of contents",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-integration",
|
||||
"enum": [
|
||||
"toc.integrate"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
"palette": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Color palette",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scheme": {
|
||||
"$ref": "#/definitions/scheme"
|
||||
},
|
||||
"primary": {
|
||||
"$ref": "#/definitions/primary"
|
||||
},
|
||||
"accent": {
|
||||
"$ref": "#/definitions/accent"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"title": "Color palette",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scheme": {
|
||||
"$ref": "#/definitions/scheme"
|
||||
},
|
||||
"primary": {
|
||||
"$ref": "#/definitions/primary"
|
||||
},
|
||||
"accent": {
|
||||
"$ref": "#/definitions/accent"
|
||||
},
|
||||
"media": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "System preference",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#system-preference",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"\"(prefers-color-scheme: light)\"",
|
||||
"\"(prefers-color-scheme: dark)\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"label": "\"(prefers-color-scheme: light)\"",
|
||||
"body": "\"(prefers-color-scheme: ${1:light})\""
|
||||
}
|
||||
]
|
||||
},
|
||||
"toggle": {
|
||||
"title": "Color palette toggle",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-palette-toggle",
|
||||
"properties": {
|
||||
"icon": {
|
||||
"$ref": "#/definitions/icon"
|
||||
},
|
||||
"name": {
|
||||
"title": "Color palette toggle name",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#toggle-name",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"icon",
|
||||
"name"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"toggle"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
"scheme": "default",
|
||||
"primary": "indigo",
|
||||
"accent": "indigo"
|
||||
}
|
||||
},
|
||||
"font": {
|
||||
"oneOf": [
|
||||
{
|
||||
"title": "Google Fonts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/",
|
||||
"properties": {
|
||||
"text": {
|
||||
"$ref": "assets/fonts.json"
|
||||
},
|
||||
"code": {
|
||||
"$ref": "assets/fonts.json"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"title": "Disable Google Fonts",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/#autoloading",
|
||||
"enum": [
|
||||
false
|
||||
]
|
||||
}
|
||||
],
|
||||
"defaultSnippets": [
|
||||
{
|
||||
"body": {
|
||||
"text": "${1:Roboto}",
|
||||
"code": "${2:Roboto Mono}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"definitions": {
|
||||
"scheme": {
|
||||
"title": "Color scheme",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-scheme",
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": [
|
||||
"default",
|
||||
"slate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primary": {
|
||||
"title": "Primary color",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#primary-color",
|
||||
"enum": [
|
||||
"red",
|
||||
"pink",
|
||||
"purple",
|
||||
"deep purple",
|
||||
"indigo",
|
||||
"blue",
|
||||
"light blue",
|
||||
"cyan",
|
||||
"teal",
|
||||
"green",
|
||||
"light green",
|
||||
"lime",
|
||||
"yellow",
|
||||
"amber",
|
||||
"orange",
|
||||
"deep orange",
|
||||
"brown",
|
||||
"grey",
|
||||
"blue grey",
|
||||
"black",
|
||||
"white",
|
||||
"custom"
|
||||
]
|
||||
},
|
||||
"accent": {
|
||||
"title": "Accent color",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#accent-color",
|
||||
"enum": [
|
||||
"red",
|
||||
"pink",
|
||||
"purple",
|
||||
"deep purple",
|
||||
"indigo",
|
||||
"blue",
|
||||
"light blue",
|
||||
"cyan",
|
||||
"teal",
|
||||
"green",
|
||||
"light green",
|
||||
"lime",
|
||||
"yellow",
|
||||
"amber",
|
||||
"orange",
|
||||
"deep orange",
|
||||
"brown",
|
||||
"grey",
|
||||
"blue grey",
|
||||
"black",
|
||||
"white",
|
||||
"custom"
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "assets/icons.json"
|
||||
},
|
||||
{
|
||||
"title": "Unknown icon",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user