-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port Documentation pages, and REMOVE DOCPAD (#247)
* flixel-docs install command stuff and prettier stuff * create github actions test * replace shopify theme check with eleventy --dryrun * readme documentation * more lil info * docs in progress... * proper render documentation main page * remove docpad stuff in progress * formatting fixies * remove docpad from build script * html base for better local sites * pathprefix input * flipped the if statement * npm extra dashes * package.json script fix for test deploys
- Loading branch information
1 parent
5f459dd
commit 722a288
Showing
187 changed files
with
3,979 additions
and
8,327 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
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 |
---|---|---|
@@ -1,60 +1,60 @@ | ||
name: CI | ||
|
||
on: | ||
on: | ||
push: | ||
pull_request: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
inputs: | ||
deploy_gh_pages: | ||
description: 'Deploy to gh_pages branch (for use in forks)' | ||
description: "Deploy to gh_pages branch (for use in forks)" | ||
required: false | ||
type: boolean | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'latest' | ||
- uses: krdlab/setup-haxe@v1 | ||
- name: Build Site | ||
run: | | ||
ls -lah | ||
npm install | ||
npm run build | ||
ls -lah | ||
haxe --run RemoveRedirects | ||
# - name: Highlighting | ||
# run: | | ||
# git clone --recursive https://github.com/ninjamuffin99/Highlighter | ||
# cd Highlighter | ||
# npm install | ||
# node bin/highlighter.js ../out | ||
# cd .. | ||
- name: Deploy gh_pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
publish_dir: ./out | ||
force_orphan: true | ||
if: inputs.deploy_gh_pages == true | ||
- name: Deploy Master | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
publish_dir: ./out | ||
force_orphan: true | ||
cname: haxeflixel.com | ||
if: github.ref == 'refs/heads/master' | ||
- name: Deploy Dev | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
personal_token: ${{secrets.ACCESS_TOKEN}} | ||
publish_dir: ./out | ||
force_orphan: true | ||
cname: dev.haxeflixel.com | ||
external_repository: HaxeFlixel/dev.haxeflixel.com | ||
if: github.ref == 'refs/heads/dev' | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "latest" | ||
- uses: krdlab/setup-haxe@v1 | ||
- name: Build Site | ||
run: | | ||
ls -lah | ||
npm install | ||
npm run build ${{ inputs.deploy_gh_pages && format('{0}', github.event.repository.name ) || '' }} | ||
ls -lah | ||
haxe --run RemoveRedirects | ||
# - name: Highlighting | ||
# run: | | ||
# git clone --recursive https://github.com/ninjamuffin99/Highlighter | ||
# cd Highlighter | ||
# npm install | ||
# node bin/highlighter.js ../out | ||
# cd .. | ||
- name: Deploy gh_pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
publish_dir: ./out | ||
force_orphan: true | ||
if: inputs.deploy_gh_pages == true | ||
- name: Deploy Master | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
publish_dir: ./out | ||
force_orphan: true | ||
cname: haxeflixel.com | ||
if: github.ref == 'refs/heads/master' | ||
- name: Deploy Dev | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
personal_token: ${{secrets.ACCESS_TOKEN}} | ||
publish_dir: ./out | ||
force_orphan: true | ||
cname: dev.haxeflixel.com | ||
external_repository: HaxeFlixel/dev.haxeflixel.com | ||
if: github.ref == 'refs/heads/dev' |
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,49 @@ | ||
name: Tests | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
npm_install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "latest" | ||
- name: Get npm cache directory | ||
id: npm-cache-dir | ||
shell: bash | ||
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | ||
- uses: actions/cache@v4 | ||
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.npm-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: npm install | ||
|
||
test_matrix: | ||
needs: npm_install | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
tests: ["test:js", "test:prettier", "test:liquid"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "latest" | ||
- name: Get npm cache directory | ||
id: npm-cache-dir | ||
shell: bash | ||
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | ||
- uses: actions/cache@v4 | ||
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.npm-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: npm install | ||
- run: npm run ${{ matrix.tests }} |
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
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 @@ | ||
{ | ||
"engine": "11ty" | ||
} |
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,2 @@ | ||
**/*.js | ||
**/vendor/ |
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,5 @@ | ||
tabWidth: 2 | ||
useTabs: true | ||
printWidth: 100 | ||
bracketSameLine: true | ||
plugins: ["@shopify/prettier-plugin-liquid"] |
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,8 @@ | ||
{ | ||
"recommendations": [ | ||
"sissel.shopify-liquid", // Liquid syntax highlighting | ||
"syler.sass-indented", // Sass syntax highlighting | ||
"standard.vscode-standard", // Javascript formatting / linting | ||
"esbenp.prettier-vscode", // General linting (JSON + Liquid) | ||
], | ||
} |
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"files.associations": { | ||
"*.eco": "html" | ||
}, | ||
"[liquid]": { | ||
"editor.formatOnSave": true | ||
} | ||
} | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascript]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "standard.vscode-standard" | ||
}, | ||
"standard.autoFixOnSave": 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
Oops, something went wrong.