Skip to content

Commit

Permalink
📝upgrade website to docusaurus v3 (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
edno committed Nov 1, 2023
1 parent a5078ed commit 6b9d152
Show file tree
Hide file tree
Showing 8 changed files with 5,679 additions and 3,350 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
cd package
npm ci
npm run docs:api
earthly +build-docs
earthly --build-arg VERSION=3 +build-docs
- name: Push changes to website repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ build-examples:
build-docs:
ARG VERSION=latest
COPY ./website ./
COPY +build-examples/examples --VERSION=$VERSION ./examples
COPY (+build-examples/examples --VERSION=$VERSION) ./examples
COPY --dir docs .
COPY --dir api .
RUN npm install
Expand Down
6 changes: 3 additions & 3 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ plugins: [

Use a GraphQL directive for creating documentation categories (see [documentation categories](/docs/advanced/group-by-directive)).

| Setting | CLI flag | Default |
| ------------------ | ------------------------------------------------------------------------ | ----------- |
| `groupByDirective` | <code>-gdb, --groupByDirective <@directive(field&#124;=fallback)></code> | `undefined` |
| Setting | CLI flag | Default |
| ------------------ | ------------------------------------------------------------------------------- | ----------- |
| `groupByDirective` | <code>-gdb, --groupByDirective &lt;&#64;directive(field&#124;=fallback)></code> | `undefined` |

## `homepage`

Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/array.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Internal library of helpers for converting array \<-\> list.
* Internal library of helpers for manipulating array and list.
*
* @packageDocumentation
*/
Expand Down
1 change: 0 additions & 1 deletion typedoc.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"useCodeBlocks": true,
"outputFileStrategy": "modules",
"pretty": true,
"mergeReadme": true,
"theme": "default",
"visibilityFilters": {},
"validation": {
Expand Down
12 changes: 6 additions & 6 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-nocheck
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const { themes } = require("prism-react-renderer");
const lightCodeTheme = themes.github, darkCodeTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand All @@ -26,7 +26,7 @@ const config = {
id: "example-default",
path: "./examples/default",
routeBasePath: "examples/default",
sidebarPath: require.resolve("./examples/default/sidebar-schema.js"),
sidebarPath: "./examples/default/sidebar-schema.js",
},
],
[
Expand All @@ -35,7 +35,7 @@ const config = {
id: "example-group-by",
path: "./examples/group-by",
routeBasePath: "examples/group-by",
sidebarPath: require.resolve("./examples/group-by/sidebar-schema.js"),
sidebarPath: "./examples/group-by/sidebar-schema.js",
},
],
[
Expand All @@ -54,13 +54,13 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
sidebarPath: "./sidebars.js",
editUrl:
"https://github.com/graphql-markdown/graphql-markdown/tree/main/",
exclude: ["**/__*.md"],
},
theme: {
customCss: [require.resolve("./src/css/custom.css")],
customCss: ["./src/css/custom.css"],
},
sitemap: {
changefreq: "monthly",
Expand Down
Loading

0 comments on commit 6b9d152

Please sign in to comment.