Skip to content

Commit

Permalink
Pretty docs (ExtraMojo#19)
Browse files Browse the repository at this point in the history
* theme-aware code blocks

* collapsed overload details

* word wrap in code blocks, for signatures

* word wrap opt-out example

* don't publish from PRs
  • Loading branch information
mlange-42 authored Feb 14, 2025
1 parent 8941c78 commit 8bb122d
Show file tree
Hide file tree
Showing 11 changed files with 973 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
path: docs/site/public

- name: Deploy to GitHub Pages
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
Expand Down
2 changes: 1 addition & 1 deletion ExtraMojo/cli/parser.mojo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A very basic CLI Opt Parser.
```mojo
```mojo {doctest="parser" class="no-wrap"}
from testing import assert_equal, assert_true
from ExtraMojo.cli.parser import OptParser, OptConfig, OptKind
Expand Down
Loading

0 comments on commit 8bb122d

Please sign in to comment.