-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from dojoengine/start-docs
Start docs
- Loading branch information
Showing
13 changed files
with
195 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "typedoc" | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install Protobuf Compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
|
||
- name: Install dependencies | ||
run: bun link | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Build dependencies | ||
run: bun run build | ||
|
||
- name: Build docs | ||
run: bun run docs | ||
|
||
- uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./docs | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: githubs | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
# https://github.com/actions/deploy-pages | ||
uses: actions/deploy-pages@v2 |
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 +1,2 @@ | ||
node_modules | ||
docs |
File renamed without changes
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,36 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, | ||
"jsx": "react-jsx" /* Specify what JSX code is generated. */, | ||
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */, | ||
|
||
/* Modules */ | ||
"module": "ESNext" /* Specify what module code is generated. */, | ||
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */, | ||
"baseUrl": "./src" /* Specify the base directory to resolve non-relative module names. */, | ||
|
||
/* Emit */ | ||
"noEmit": true /* Disable emitting files from a compilation. */, | ||
|
||
/* Interop Constraints */ | ||
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, | ||
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, | ||
|
||
/* Type Checking */ | ||
"strict": true /* Enable all strict type-checking options. */, | ||
"noFallthroughCasesInSwitch": true /* Enable error reporting for fallthrough cases in switch statements. */, | ||
|
||
/* Completeness */ | ||
"skipLibCheck": true /* Skip type checking all .d.ts files. */, | ||
"resolveJsonModule": true, | ||
"allowImportingTsExtensions": true, | ||
"noImplicitAny": false | ||
}, | ||
"include": ["./packages"], | ||
"exclude": [ | ||
"node_modules", | ||
"./node_modules", | ||
"./node_modules/*", | ||
"./node_modules/@types/node/index.d.ts" | ||
] | ||
} |
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,27 @@ | ||
{ | ||
"plugin": ["typedoc-material-theme", "typedoc-plugin-coverage"], | ||
"themeColor": "#cb9820", | ||
"$schema": "https://typedoc.org/schema.json", | ||
"name": "dojo.js docs", | ||
"entryPoints": [ | ||
"./packages/core/src/index.ts", | ||
"./packages/react/src/index.ts", | ||
"./packages/create-burner/src/index.ts", | ||
"./packages/utils/src/index.ts", | ||
"./packages/torii-client/src/index.ts" | ||
], | ||
"sort": ["source-order"], | ||
"media": "media", | ||
"categorizeByGroup": false, | ||
"searchCategoryBoosts": { | ||
"Component": 2, | ||
"Model": 1.2 | ||
}, | ||
"searchGroupBoosts": { | ||
"Classes": 1.5 | ||
}, | ||
"navigationLinks": { | ||
"Docs": "https://dojoengine.github.io/dojo.js", | ||
"GitHub": "https://github.com/dojoengine/dojo.js" | ||
} | ||
} |