Skip to content

Commit bdedf8a

Browse files
committed
initial commit
0 parents  commit bdedf8a

File tree

110 files changed

+12160
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+12160
-0
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto
2+
Cargo.lock -diff
3+
*.css text
4+
*.htm text
5+
*.html text
6+
*.md text
7+
*.jpg binary
8+
*.png binary

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: gbadev-org
2+
open_collective: gbadev

.github/workflows/build-deploy.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build and deploy an updated version of ndsdoc
2+
3+
on:
4+
push
5+
6+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
name: Build Tonc
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout tonc (and submodules)
24+
uses: actions/checkout@v2
25+
with:
26+
path: tonc
27+
submodules: 'true'
28+
29+
- name: Install mdbook
30+
uses: peaceiris/actions-mdbook@v1
31+
with:
32+
mdbook-version: 0.4.33
33+
34+
- name: Install static-sitemap-cli
35+
run: npm install static-sitemap-cli
36+
37+
- name: Cache build dir
38+
uses: actions/cache@v2
39+
with:
40+
path: tonc/target/
41+
key: ${{ runner.os }}-build-${{ hashFiles('tonc/Cargo.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-build-
44+
45+
- name: Build
46+
working-directory: tonc/
47+
env:
48+
MDBOOK_BUILD__CREATE_MISSING: "false" # Prevent creating missing files in SUMMARY.md
49+
run: |
50+
mdbook build
51+
52+
- name: Generate sitemap
53+
run: |
54+
cd tonc/output
55+
npx sscli --no-clean --base https://ndsdoc.gbadev.net/
56+
57+
- name: Upload artifact
58+
uses: actions/upload-pages-artifact@v1
59+
with:
60+
path: tonc/output
61+
62+
deploy:
63+
name: Deploy to GitHub pages
64+
# Do not run this unless *pushing* to `master`.
65+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
runs-on: ubuntu-latest
70+
needs: build
71+
steps:
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v2

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/output/
2+
target/

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "mdbook-external-links"]
2+
path = mdbook-external-links
3+
url = https://github.com/jonahgoldwastaken/mdbook-external-links
4+
[submodule "mdbook-toc"]
5+
path = mdbook-toc
6+
url = https://github.com/badboy/mdbook-toc

0 commit comments

Comments
 (0)