Skip to content

Commit 8ba3d25

Browse files
committed
Update the API docs
1 parent 6a2d332 commit 8ba3d25

19 files changed

+103
-35
lines changed

packages/replicad-docs/docs/examples/design-watering-can.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_position: 7
3-
title: Design watering can
3+
title: Watering can
44
---
55

66
import CodeBlock from '@theme/CodeBlock';

packages/replicad-docs/docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ As of now, there is only a simple online workbench to play with the replicad
2323
API and draw a 3D model.
2424

2525
You can use [the workbench](https://studio.replicad.xyz/workbench) to follow [the
26-
tutorial](/docs/tutorial-basics/using-the-workbench)
26+
tutorial](/docs/tutorial-overview/using-the-workbench)
2727

2828
## Integrating replicad in your web application
2929

packages/replicad-docs/docs/tutorial-basics/_category_.json

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Overview",
3+
"position": 2
4+
}

packages/replicad-docs/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const config = {
104104
entryPoints: ["../replicad/src/index.ts"],
105105
tsconfig: "../replicad/tsconfig.json",
106106
watch: process.env.TYPEDOC_WATCH,
107+
sidebar: { position: 100 },
107108
},
108109
],
109110
],

packages/replicad-docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@mdx-js/react": "^1.6.21",
2020
"@svgr/webpack": "^5.5.0",
2121
"clsx": "^1.1.1",
22-
"docusaurus-plugin-typedoc": "^0.17.2",
22+
"docusaurus-plugin-typedoc": "^0.18.0",
2323
"file-loader": "^6.2.0",
2424
"jszip": "^3.10.1",
2525
"prism-react-renderer": "^1.2.1",
@@ -41,8 +41,8 @@
4141
]
4242
},
4343
"devDependencies": {
44-
"typedoc": "^0.22.7",
45-
"typedoc-plugin-markdown": "^3.11.10",
46-
"typescript": "^4.4.4"
44+
"typedoc": "^0.23.25",
45+
"typedoc-plugin-markdown": "^3.14.0",
46+
"typescript": "^4.9.5"
4747
}
4848
}

packages/replicad/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"rollup-plugin-terser": "^7.0.2",
5858
"rollup-plugin-ts": "3.1.1",
5959
"typedoc": "^0.22.7",
60-
"typescript": "^4.9.4",
60+
"typescript": "^4.9.5",
6161
"vite": "^4.0.4",
6262
"vite-plugin-dts": "^1.7.1",
6363
"vitest": "^0.28.3"

packages/replicad/src/text.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ const sketchFontCommands = function* (commands: opentype.PathCommand[]) {
8383
/**
8484
* Creates the `Blueprints` of a text, in a defined font size and a font familiy
8585
* (which will be the default).
86-
*
87-
* @category Blueprints
8886
*/
8987
export function textBlueprints(
9088
text: string,
@@ -99,8 +97,6 @@ export function textBlueprints(
9997
/**
10098
* Creates the `Sketches` of a text, in a defined font size and a font familiy
10199
* (which will be the default).
102-
*
103-
* @category Sketching
104100
*/
105101
export function sketchText(
106102
text: string,

packages/replicad/tsconfig.json

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,44 @@
22
"compilerOptions": {
33
"moduleResolution": "node",
44
"target": "es6",
5-
"module":"es2015",
5+
"module": "es2015",
66
"strict": true,
77
"sourceMap": true,
88
"skipLibCheck": true,
99
"declaration": true,
1010
"allowSyntheticDefaultImports": true
1111
},
12-
"include": [
13-
"src"
14-
],
12+
"include": ["src"],
1513
"typedocOptions": {
16-
"watch": true,
17-
"readme": "none",
18-
"excludeProtected": true
14+
"watch": true,
15+
"readme": "none",
16+
"categoryOrder": ["Drawing", "Import", "*"],
17+
"kindSortOrder": [
18+
"Function",
19+
"Reference",
20+
"Project",
21+
"Module",
22+
"Namespace",
23+
"Enum",
24+
"EnumMember",
25+
"Class",
26+
"Interface",
27+
"TypeAlias",
28+
"Constructor",
29+
"Property",
30+
"Variable",
31+
"Accessor",
32+
"Method",
33+
"ObjectLiteral",
34+
"Parameter",
35+
"TypeParameter",
36+
"TypeLiteral",
37+
"CallSignature",
38+
"ConstructorSignature",
39+
"IndexSignature",
40+
"GetSignature",
41+
"SetSignature"
42+
],
43+
"excludeProtected": true
1944
}
2045
}
21-

yarn.lock

Lines changed: 59 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5643,6 +5643,11 @@ ansi-regex@^6.0.1:
56435643
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a"
56445644
integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==
56455645

5646+
ansi-sequence-parser@^1.1.0:
5647+
version "1.1.0"
5648+
resolved "https://registry.yarnpkg.com/ansi-sequence-parser/-/ansi-sequence-parser-1.1.0.tgz#4d790f31236ac20366b23b3916b789e1bde39aed"
5649+
integrity sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ==
5650+
56465651
ansi-styles@^3.2.1:
56475652
version "3.2.1"
56485653
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
@@ -7441,10 +7446,10 @@ doctrine@^3.0.0:
74417446
dependencies:
74427447
esutils "^2.0.2"
74437448

7444-
docusaurus-plugin-typedoc@^0.17.2:
7445-
version "0.17.2"
7446-
resolved "https://registry.yarnpkg.com/docusaurus-plugin-typedoc/-/docusaurus-plugin-typedoc-0.17.2.tgz#ee3d0565604c3d4972aff9869b1de3dcf02de749"
7447-
integrity sha512-4K6kJbyUlUMR7tl2cMfCOG8E/3N0JISw7Wcx0afo0lvrXdZukDqwtpS58Nt/hBVO1s6gzSWyK+PJjseaDq0JdA==
7449+
docusaurus-plugin-typedoc@^0.18.0:
7450+
version "0.18.0"
7451+
resolved "https://registry.yarnpkg.com/docusaurus-plugin-typedoc/-/docusaurus-plugin-typedoc-0.18.0.tgz#d04966c4ed843a285c72cdd641e2fb3973684f9f"
7452+
integrity sha512-kurIUu8LhVIOPT88HoeBcu0/D2GMDdg0pUYaFlqeuXT9an6Wlgvuy0C22ZMYcJUcp/gA/Mw2XdUHubsLK2M4uA==
74487453

74497454
dom-converter@^0.2.0:
74507455
version "0.2.0"
@@ -10330,6 +10335,11 @@ marked@^3.0.8:
1033010335
resolved "https://registry.yarnpkg.com/marked/-/marked-3.0.8.tgz#2785f0dc79cbdc6034be4bb4f0f0a396bd3f8aeb"
1033110336
integrity sha512-0gVrAjo5m0VZSJb4rpL59K1unJAMb/hm8HRXqasD8VeC8m91ytDPMritgFSlKonfdt+rRYYpP/JfLxgIX8yoSw==
1033210337

10338+
marked@^4.2.12:
10339+
version "4.2.12"
10340+
resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.12.tgz#d69a64e21d71b06250da995dcd065c11083bebb5"
10341+
integrity sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==
10342+
1033310343
mdast-squeeze-paragraphs@^4.0.0:
1033410344
version "4.0.0"
1033510345
resolved "https://registry.yarnpkg.com/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-4.0.0.tgz#7c4c114679c3bee27ef10b58e2e015be79f1ef97"
@@ -10554,6 +10564,13 @@ minimatch@^5.0.1, minimatch@^5.1.0:
1055410564
dependencies:
1055510565
brace-expansion "^2.0.1"
1055610566

10567+
minimatch@^6.1.6:
10568+
version "6.2.0"
10569+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-6.2.0.tgz#2b70fd13294178c69c04dfc05aebdb97a4e79e42"
10570+
integrity sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==
10571+
dependencies:
10572+
brace-expansion "^2.0.1"
10573+
1055710574
minimist-options@4.1.0:
1055810575
version "4.1.0"
1055910576
resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619"
@@ -13284,6 +13301,16 @@ shelljs@^0.8.5:
1328413301
interpret "^1.0.0"
1328513302
rechoir "^0.6.2"
1328613303

13304+
shiki@^0.14.1:
13305+
version "0.14.1"
13306+
resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.14.1.tgz#9fbe082d0a8aa2ad63df4fbf2ee11ec924aa7ee1"
13307+
integrity sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==
13308+
dependencies:
13309+
ansi-sequence-parser "^1.1.0"
13310+
jsonc-parser "^3.2.0"
13311+
vscode-oniguruma "^1.7.0"
13312+
vscode-textmate "^8.0.0"
13313+
1328713314
shiki@^0.9.12:
1328813315
version "0.9.12"
1328913316
resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.9.12.tgz#70cbc8c1bb78ff7b356f84a7eecdb040efddd247"
@@ -14267,10 +14294,10 @@ typedarray@^0.0.6:
1426714294
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1426814295
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1426914296

14270-
typedoc-plugin-markdown@^3.11.10:
14271-
version "3.13.4"
14272-
resolved "https://registry.yarnpkg.com/typedoc-plugin-markdown/-/typedoc-plugin-markdown-3.13.4.tgz#4c2f02b254c47d25b91579177900c1da5c5579b8"
14273-
integrity sha512-E/EBBmu6ARtnbswZGtBVBB/BfukZiGMOlqPc0RXCI/NFitONBahFqbCAF5fKQlijlcfipJj5pw5AMFH3NytrAw==
14297+
typedoc-plugin-markdown@^3.14.0:
14298+
version "3.14.0"
14299+
resolved "https://registry.yarnpkg.com/typedoc-plugin-markdown/-/typedoc-plugin-markdown-3.14.0.tgz#17b99ee3ab0d21046d253f185f7669e80d0d7891"
14300+
integrity sha512-UyQLkLRkfTFhLdhSf3RRpA3nNInGn+k6sll2vRXjflaMNwQAAiB61SYbisNZTg16t4K1dt1bPQMMGLrxS0GZ0Q==
1427414301
dependencies:
1427514302
handlebars "^4.7.7"
1427614303

@@ -14285,15 +14312,25 @@ typedoc@^0.22.7:
1428514312
minimatch "^3.0.4"
1428614313
shiki "^0.9.12"
1428714314

14315+
typedoc@^0.23.25:
14316+
version "0.23.25"
14317+
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.23.25.tgz#5f8f1850fd044c4d15d453117affddf11a265610"
14318+
integrity sha512-O1he153qVyoCgJYSvIyY3bPP1wAJTegZfa6tL3APinSZhJOf8CSd8F/21M6ex8pUY/fuY6n0jAsT4fIuMGA6sA==
14319+
dependencies:
14320+
lunr "^2.3.9"
14321+
marked "^4.2.12"
14322+
minimatch "^6.1.6"
14323+
shiki "^0.14.1"
14324+
1428814325
typescript@^4.4.4:
1428914326
version "4.4.4"
1429014327
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
1429114328
integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==
1429214329

14293-
typescript@^4.9.4:
14294-
version "4.9.4"
14295-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
14296-
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
14330+
typescript@^4.9.5:
14331+
version "4.9.5"
14332+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
14333+
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
1429714334

1429814335
typescript@~4.8.4:
1429914336
version "4.8.4"
@@ -14768,11 +14805,21 @@ vitest@^0.28.3:
1476814805
vite-node "0.28.3"
1476914806
why-is-node-running "^2.2.2"
1477014807

14808+
vscode-oniguruma@^1.7.0:
14809+
version "1.7.0"
14810+
resolved "https://registry.yarnpkg.com/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz#439bfad8fe71abd7798338d1cd3dc53a8beea94b"
14811+
integrity sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==
14812+
1477114813
vscode-textmate@5.2.0:
1477214814
version "5.2.0"
1477314815
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e"
1477414816
integrity sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==
1477514817

14818+
vscode-textmate@^8.0.0:
14819+
version "8.0.0"
14820+
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-8.0.0.tgz#2c7a3b1163ef0441097e0b5d6389cd5504b59e5d"
14821+
integrity sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==
14822+
1477614823
wait-on@^6.0.1:
1477714824
version "6.0.1"
1477814825
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-6.0.1.tgz#16bbc4d1e4ebdd41c5b4e63a2e16dbd1f4e5601e"

0 commit comments

Comments
 (0)