Skip to content

Commit eeaf6eb

Browse files
committed
Moved to mkdocs
1 parent 37eb1b4 commit eeaf6eb

File tree

5 files changed

+122
-0
lines changed

5 files changed

+122
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
permissions:
7+
contents: write
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- name: Setup Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
23+
- name: Setup Cache
24+
uses: actions/cache@v4
25+
with:
26+
key: mkdocs-material-${{ env.cache_id }}
27+
path: .cache
28+
restore-keys: |
29+
mkdocs-material-
30+
- name: Install mkdocs and plugins
31+
run: pip install markdown-include pymdown-extensions mkdocs-material mkdocs-material-extensions mkdocs-awesome-pages-plugin mkdocs-glightbox mkdocs-get-deps mkdocs-glightbox mkdocs-nav-weight mkdocs-pdf-export-plugin
32+
working-directory: ./docs
33+
- name: Deploy Site
34+
run: mkdocs gh-deploy --force
35+
working-directory: ./docs

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"yaml.schemas": {
3+
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
4+
},
5+
"yaml.customTags": [
6+
"!ENV scalar",
7+
"!ENV sequence",
8+
"!relative scalar",
9+
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
10+
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
11+
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
12+
]
13+
}

docs/assets/logo.png

3.27 KB
Loading

docs/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
hide:
3+
- navigation
4+
- toc
5+
---
6+
7+
# Welcome to PhonePe Open Source
8+
9+
Please check out these projects:
10+
11+
- [Mantis](/mantis) - Automated Discovery, Recon & Scan
12+
- [Mustang](https://github.com/PhonePe/mustang) - Boolean expression indexer
13+
- [Drove Container Orchestrator](/drove-orchestrator) - Distributed container orchestrator

mkdocs.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
site_name: PhonePe Open Source
2+
site_url: https://phonepe.github.io
3+
4+
theme:
5+
name: material
6+
logo: assets/logo.png
7+
palette:
8+
9+
# Palette toggle for automatic mode
10+
- media: "(prefers-color-scheme)"
11+
toggle:
12+
icon: material/brightness-auto
13+
name: Switch to light mode
14+
15+
# Palette toggle for light mode
16+
- media: "(prefers-color-scheme: light)"
17+
scheme: default
18+
19+
20+
toggle:
21+
icon: material/brightness-7
22+
name: Switch to dark mode
23+
24+
# Palette toggle for dark mode
25+
- media: "(prefers-color-scheme: dark)"
26+
scheme: slate
27+
toggle:
28+
icon: material/brightness-4
29+
name: Switch to system preference
30+
features:
31+
- navigation.tracking
32+
- navigation.prune
33+
- content.code.copy
34+
- content.code.annotate
35+
- toc: false
36+
# - navigation.expand
37+
plugins:
38+
- awesome-pages
39+
40+
markdown_extensions:
41+
- toc:
42+
permalink: true
43+
- attr_list
44+
- md_in_html
45+
- pymdownx.superfences
46+
- admonition
47+
- pymdownx.details
48+
- pymdownx.superfences
49+
- tables
50+
- pymdownx.emoji:
51+
emoji_index: !!python/name:material.extensions.emoji.twemoji
52+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
53+
- markdown_include.include:
54+
base_path: snippets
55+
- pymdownx.tabbed:
56+
alternate_style: true
57+
- pymdownx.superfences:
58+
custom_fences:
59+
- name: mermaid
60+
class: mermaid
61+
format: !!python/name:pymdownx.superfences.fence_code_format

0 commit comments

Comments
 (0)