Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyUnderStars committed Oct 9, 2024
0 parents commit a127b31
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build to GH Pages
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x

- run: python3 -m pip install -r requirements.txt

- run: mkdocs build

# TODO: once this is deployed to the real site, uncomment
# - run: echo cmfive.com >> site/CNAME

- name: Deploy to pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: site
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Placeholder index.

Visit [the mkdocs material documentation](https://squidfunk.github.io/mkdocs-material/reference/) for references
39 changes: 39 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
site_name: Cosine
repo_url: https://github.com/2pisoftware/cmfive-core
edit_uri: https://github.com/2pisoftware/cosine-docs
site_description: Open source modular MVC PHP framework
plugins:
- section-index
- search
theme:
name: material
logo: assets/logo.svg
favicon: assets/favicon.svg
font: Open Sans
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/lightbulb-outline
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
toggle:
icon: material/lightbulb
name: Switch to light mode
features:
- navigation.expand
- navigation.instant
- navigation.tracking
- navigation.sections
- navigation.indexes
- navigation.top
markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
19 changes: 19 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Cosine Documentation

Documentation for [Cosine](https://github.com/2pisoftware/cmfive-core)

## Installation

```sh
# clone
git clone https://github.com/2pisoftware/cosine-docs.git

# install deps
python3 -m pip install -r requirements.txt

# serve development site
mkdocs serve

# build production site
mkdocs build
```
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdocs==1.5.2
mkdocs-material==9.1.21
mkdocs-section-index==0.3.5

0 comments on commit a127b31

Please sign in to comment.