forked from latticexyz/mud
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: migrate to Retype, add services api docs, setup deploy+preview …
…actions (latticexyz#272)
- Loading branch information
Showing
107 changed files
with
1,974 additions
and
6,526 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# .github/workflows/docs.yml | ||
name: Generate and deploy docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
name: Generate docs | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Setup gomarkdoc | ||
run: go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest && export PATH=${PATH}:`go env GOPATH`/bin | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: git-checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install dependencies | ||
run: yarn install --network-concurrency 1 | ||
|
||
- name: Generate docs | ||
run: yarn docs | ||
|
||
- name: Publish to Cloudflare Pages | ||
id: cloudflare_publish | ||
uses: cloudflare/pages-action@13c6a2f35417aaf1906cdbb1f6faf6c72c697b08 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: mud-dev | ||
directory: .retype | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules | |
.DS_STORE | ||
.parcel-cache | ||
.docs | ||
lerna-debug.log | ||
lerna-debug.log | ||
.retype |
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,2 @@ | ||
icon: diff | ||
label: Changelog |
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,11 +1,20 @@ | ||
--- | ||
icon: public/logo512_dark.png | ||
--- | ||
|
||
# MUD | ||
|
||
MUD is an engine for autonomous worlds. | ||
|
||
To get started, have a look at the [documentation](https://mud.dev) and [reference implementation](https://github.com/latticexyz/mudbasics) of a simple MUD project. | ||
|
||
## Local dev setup | ||
|
||
- Clone MUD: `git clone https://github.com/latticexyz/mud` | ||
- Install go (to build packages/services): `https://go.dev/doc/install` | ||
- Install jq (for various yarn commands): `https://stedolan.github.io/jq/download/` | ||
- Install dependencies: `yarn` (in mud root) | ||
|
||
## Library | ||
|
||
[!embed](https://www.youtube.com/embed/j-_Zf8o5Wlo) | ||
[!embed](https://www.youtube.com/embed/mv3jA4USZtg) |
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,44 @@ | ||
<style> | ||
.dark .dark\:text-blue-400, .dark, .dark .docs-markdown a:not(.no-link), .dark .dark\:hover\:text-blue-400:hover { | ||
color: #eb4926; | ||
} | ||
|
||
.dark .dark\:hover\:text-blue-200:hover { | ||
color: #f9ccc2; | ||
} | ||
|
||
.dark .dark\:bg-blue-400 { | ||
background-color: #eb4926; | ||
} | ||
|
||
.dark .dark\:bg-dark-550 { | ||
background-color: rgb(255 255 255 / 10%); | ||
} | ||
|
||
.dark .dark\:border-dark-600 { | ||
border-color: rgb(255 255 255 / 5%); | ||
} | ||
|
||
.dark .dark\:bg-dark-650 { | ||
background-color: #270e09; | ||
} | ||
|
||
.dark .dark\:bg-dark-850 { | ||
background-color: #000000; | ||
} | ||
|
||
.dark .dark\:bg-dark-800 { | ||
background-color: #000000; | ||
} | ||
|
||
.rounded, .rounded-r-lg, .rounded-l { | ||
border-radius: 0; | ||
} | ||
</style> | ||
<script> | ||
const themeColor = localStorage.getItem("doc_theme"); | ||
if(!themeColor) { | ||
localStorage.setItem("doc_theme", "dark") | ||
document.documentElement.classList.add("dark"); | ||
} | ||
</script> |
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
--- | ||
icon: rocket | ||
--- | ||
|
||
coming soon |
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 @@ | ||
expanded: true | ||
order: 50 | ||
icon: book |
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,7 +1,6 @@ | ||
{ | ||
"packages": [ | ||
"packages/*", | ||
"packages/ri/*" | ||
"packages/*" | ||
], | ||
"version": "1.29.0", | ||
"npmClient": "yarn", | ||
|
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 @@ | ||
label: Changelog |
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 @@ | ||
# cli | ||
|
||
docs coming soon |
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 @@ | ||
label: cli | ||
order: 10 |
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 @@ | ||
label: Changelog |
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,3 +1,3 @@ | ||
# RECS Component Browser | ||
# ECS Browser | ||
|
||
Unity style Component Browser sidebar for debugging / development |
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 @@ | ||
label: ecs-browser |
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 @@ | ||
icon: code |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.