-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a127b31
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |