Skip to content

Commit 2d08101

Browse files
committed
merge with upstream
2 parents 1b296ee + 65ce3fa commit 2d08101

File tree

17 files changed

+277
-14511
lines changed

17 files changed

+277
-14511
lines changed

.remarkignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Configs
2+
.vscode/
3+
4+
# Assets
5+
assets/
6+
7+
# Generated Docs
8+
_docs/
9+
_docs-dev/
10+
_docs-docs/
11+
existing-typedoc-dev/
12+
13+
# Package Manager
14+
node_modules/
15+
16+
# Build Directories
17+
dist/

.remarkrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export default {
2+
plugins: [
3+
"remark-frontmatter",
4+
"remark-mdx",
5+
[
6+
"remark-stringify",
7+
{
8+
bullet: "-",
9+
listItemIndent: "one",
10+
emphasis: "*",
11+
strong: "*",
12+
fences: true,
13+
fence: "`",
14+
rule: "-",
15+
incrementListMarker: true,
16+
},
17+
],
18+
],
19+
};

docs/contributors/Index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributors
2+
3+
Here are the docs that haven't been published on the Typedoc.

docs/contributors/Typedoc.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Typedoc
2+
3+
Scramjet comes with a Typedoc.
4+
There is information about how to run it locally in the [README](../README.md).
5+
There are two types of Typedoc generated: user-facing (main) and developer-facing (dev).
6+
The user-facing documentation is generated at `/typedoc`, and the developer-facing documentation is generated at `/typedoc/dev`.
7+
The site is generated by the [CI here](../../.github/workflows/) under the job "pages". You can simulate that CI job with the script at `scripts/serve-static.sh`. This includes the demo and the Typedoc.
8+
9+
## How versioning works
10+
11+
Versioning is handled [this plugin](https://www.npmjs.com/package/@shipgirl/typedoc-plugin-versions).
12+
[This CI script](../../ci/download-existing-docs.sh) downloads the previous Typedoc builds from the artifacts for all Scramjet releases with the latest from the package version.

docs/dev/Typedoc.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: What is this?
3+
---
4+
5+
The current doc you are reading is generated with [typedoc-plugin-markdown](https://github.com/ElektraInitiative/typedoc-plugin-markdown).
6+
7+
Typedoc documents all of the Scramjet APIs. Specifically, you are on the developer-facing documentation, so you will see APIs documented, which aren't exposed publicly in the package.
8+
9+
[**Switch to user-facing documentation**](/typedoc) to see what you actually need if you aren't a contributor, rather an implementor or someone interested in Scramjet.

docs/user/Typedoc.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: What is this?
3+
---
4+
5+
You are currently on the user-facing documentation. This only documents APIs, which are exposed to you, so you can implement Scramjet into your site without having to worry about the internals of the library.
6+
7+
[**Switch to developer-facing documentation**](/typedoc-dev) to see all APIs used internally too.

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"prepack": "RELEASE=1 npm run rewriter:build && npm run build:all",
1919
"pub": "npm publish --no-git-checks --access public",
2020
"format": "prettier --write .",
21+
"format:docs": "remark \"docs/**/*.{md,mdx}\" --output",
2122
"lint": "eslint ./src/",
2223
"lint:fix": "eslint ./src/ --fix",
2324
"lint:workflows": "actionlint .github/workflows/*.yml",
@@ -58,6 +59,7 @@
5859
"verbose": true
5960
},
6061
"devDependencies": {
62+
"@8hobbies/typedoc-plugin-404": "^3.2.1",
6163
"@8hobbies/typedoc-plugin-plausible": "^2.2.0",
6264
"@catppuccin/vscode": "^3.18.0",
6365
"@eslint/eslintrc": "^3.3.1",
@@ -71,6 +73,7 @@
7173
"@mercuryworkshop/wisp-js": "^0.3.3",
7274
"@nebula-services/bare-server-node": "^2.0.4",
7375
"@playwright/test": "^1.55.0",
76+
"@reside-ic/typedoc-plugin-copy-doc": "^1.1.2",
7477
"@rsdoctor/rspack-plugin": "^1.2.3",
7578
"@rslib/core": "^0.13.2",
7679
"@rspack/cli": "^1.5.3",
@@ -91,9 +94,17 @@
9194
"glob": "^11.0.3",
9295
"playwright": "^1.55.0",
9396
"prettier": "^3.6.2",
97+
"remark": "^15.0.1",
98+
"remark-cli": "^12.0.1",
99+
"remark-frontmatter": "^5.0.0",
100+
"remark-mdx": "^3.1.1",
101+
"remark-stringify": "^11.0.0",
94102
"ts-checker-rspack-plugin": "^1.1.5",
95103
"tsc-alias": "^1.8.16",
96104
"tslib": "^2.8.1",
105+
"typedoc": "^0.28.12",
106+
"typedoc-material-theme": "^1.4.0",
107+
"typedoc-plugin-frontmatter": "^1.3.0",
97108
"typedoc-plugin-include-example": "^2.1.2",
98109
"typedoc-plugin-markdown": "^4.8.1",
99110
"typedoc-plugin-mdn-links": "^5.0.9",
@@ -106,9 +117,8 @@
106117
"domutils": "^3.2.2",
107118
"htmlparser2": "10.0.0",
108119
"libcurl.js": "^0.7.2",
120+
"idb": "^8.0.3",
109121
"parse-domain": "^8.2.2",
110-
"set-cookie-parser": "^2.7.1",
111-
"typedoc": "^0.28.12",
112-
"typedoc-material-theme": "^1.4.0"
122+
"set-cookie-parser": "^2.7.1"
113123
}
114124
}

0 commit comments

Comments
 (0)