Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ jobs:
run: |
cmake -DCMAKE_CXX_FLAGS='-DIMGUI_USE_WCHAR32' .
cmake --build . -j4
- name: Build docs
run: |
tools/build_docs.sh
- name: Set up environment
if: runner.os != 'Windows'
working-directory: ./cimgui
Expand All @@ -68,11 +65,6 @@ jobs:
- name: Build demo
run: |
crystal build --cross-compile examples/demo_sfml.cr
- name: Deploy docs to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && runner.os == 'Linux'
uses: oprypin/push-to-gh-pages@v3
with:
publish_dir: ./docs
- name: Check formatting
if: matrix.crystal == 'latest'
run: |
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy docs
on:
push:
pull_request:
schedule:
- cron: '0 6 * * 6'
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v2
- name: Install Crystal
uses: oprypin/install-crystal@v1
- name: Install Python
uses: actions/setup-python@v2
- name: Install dependencies
run: pip install --no-deps -r docs/requirements.txt
- name: Build site
run: mkdocs build
- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: oprypin/push-to-gh-pages@v3
with:
publish_dir: site
commit_message: 'Generate docs: '
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/docs/
/site/
lib/
/bin/
/.shards/
Expand Down
14 changes: 14 additions & 0 deletions docs/css/mkdocstrings.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* https://mkdocstrings.github.io/crystal/styling.html#recommended-styles */

/* Indent and distinguish sub-items */
div.doc-contents {
padding-left: 15px;
border-left: 4px solid rgba(230, 230, 230);
}

.doc-heading {
background-color: var(--md-code-bg-color);
}
h4.doc-heading {
font-weight: initial;
}
306 changes: 306 additions & 0 deletions docs/drawing.md

Large diffs are not rendered by default.

Loading