Skip to content

Commit 38ae5fa

Browse files
committed
test doc fix
1 parent 1b97c6a commit 38ae5fa

File tree

3 files changed

+1808
-1257
lines changed

3 files changed

+1808
-1257
lines changed

docs/09-testsing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ afterAll(async () => {
8787
// do something
8888
});
8989

90-
afterAll(async () => {
90+
beforeEach(async () => {
9191
// do something
9292
});
9393

docusaurus.config.js

Lines changed: 120 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -5,133 +5,137 @@ import { themes } from "prism-react-renderer";
55

66
/** @type {import('@docusaurus/types').Config} */
77
const config = {
8-
title: "Adaptivestone Framework",
9-
tagline:
10-
"Collection of usefull good stuff that works as a whole. MIT licensed",
11-
url: "https://framework.adaptivestone.com",
12-
baseUrl: "/",
13-
onBrokenLinks: "throw",
14-
onBrokenMarkdownLinks: "warn",
15-
favicon: "img/favicon.png",
16-
organizationName: "adaptivestone", // Usually your GitHub org/user name.
17-
projectName: "framework", // Usually your repo name.
8+
title: "Adaptivestone Framework",
9+
tagline:
10+
"Collection of usefull good stuff that works as a whole. MIT licensed",
11+
url: "https://framework.adaptivestone.com",
12+
baseUrl: "/",
13+
onBrokenLinks: "throw",
14+
markdown: {
15+
hooks: {
16+
onBrokenMarkdownLinks: "warn",
17+
},
18+
},
19+
favicon: "img/favicon.png",
20+
organizationName: "adaptivestone", // Usually your GitHub org/user name.
21+
projectName: "framework", // Usually your repo name.
1822

19-
presets: [
20-
[
21-
"@docusaurus/preset-classic",
22-
/** @type {import('@docusaurus/preset-classic').Options} */
23-
({
24-
docs: {
25-
sidebarPath: "./sidebars.js",
26-
editUrl: "https://github.com/adaptivestone/framework-documenation",
27-
},
23+
presets: [
24+
[
25+
"@docusaurus/preset-classic",
26+
/** @type {import('@docusaurus/preset-classic').Options} */
27+
({
28+
docs: {
29+
sidebarPath: "./sidebars.js",
30+
editUrl: "https://github.com/adaptivestone/framework-documenation",
31+
},
2832

29-
theme: {
30-
customCss: "./src/css/custom.css",
31-
},
32-
}),
33-
],
34-
],
33+
theme: {
34+
customCss: "./src/css/custom.css",
35+
},
36+
}),
37+
],
38+
],
3539

36-
themeConfig:
37-
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
38-
({
39-
navbar: {
40-
title: "Adaptivestone framework",
41-
logo: {
42-
alt: "Adaptivestone Logo",
43-
src: "img/logo.svg",
44-
},
45-
items: [
46-
{
47-
type: "doc",
48-
docId: "intro",
49-
position: "left",
50-
label: "Docs",
51-
},
52-
{
53-
href: "https://github.com/adaptivestone/framework-documenation",
54-
label: "GitHub (docs)",
55-
position: "right",
56-
},
57-
{
58-
href: "https://github.com/adaptivestone/framework",
59-
label: "GitHub (framework)",
60-
position: "right",
61-
},
62-
],
63-
},
64-
footer: {
65-
style: "dark",
66-
links: [
67-
{
68-
title: "Docs",
69-
items: [
70-
{
71-
label: "Docs",
72-
to: "/docs/intro",
73-
},
74-
],
75-
},
76-
{
77-
title: "Contact us",
78-
items: [
79-
{
80-
label: "Email",
81-
href: "mailto:[email protected]?subject=Framework site question",
82-
},
83-
],
84-
},
85-
{
86-
title: "More",
87-
items: [
88-
{
89-
href: "https://github.com/adaptivestone/framework-documenation",
90-
label: "GitHub (docs)",
91-
},
92-
{
93-
href: "https://github.com/adaptivestone/framework",
94-
label: "GitHub (framework)",
95-
},
96-
],
97-
},
98-
],
99-
copyright: `Copyright © ${new Date().getFullYear()} Adaptivestone. Built with Docusaurus.`,
100-
},
101-
prism: {
102-
theme: themes.github,
103-
darkTheme: themes.dracula,
104-
},
105-
algolia: {
106-
// The application ID provided by Algolia
107-
appId: "02GVEKZGO7",
40+
themeConfig:
41+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
42+
({
43+
navbar: {
44+
title: "Adaptivestone framework",
45+
logo: {
46+
alt: "Adaptivestone Logo",
47+
src: "img/logo.svg",
48+
},
49+
items: [
50+
{
51+
type: "doc",
52+
docId: "intro",
53+
position: "left",
54+
label: "Docs",
55+
},
56+
{
57+
href: "https://github.com/adaptivestone/framework-documenation",
58+
label: "GitHub (docs)",
59+
position: "right",
60+
},
61+
{
62+
href: "https://github.com/adaptivestone/framework",
63+
label: "GitHub (framework)",
64+
position: "right",
65+
},
66+
],
67+
},
68+
footer: {
69+
style: "dark",
70+
links: [
71+
{
72+
title: "Docs",
73+
items: [
74+
{
75+
label: "Docs",
76+
to: "/docs/intro",
77+
},
78+
],
79+
},
80+
{
81+
title: "Contact us",
82+
items: [
83+
{
84+
label: "Email",
85+
href: "mailto:[email protected]?subject=Framework site question",
86+
},
87+
],
88+
},
89+
{
90+
title: "More",
91+
items: [
92+
{
93+
href: "https://github.com/adaptivestone/framework-documenation",
94+
label: "GitHub (docs)",
95+
},
96+
{
97+
href: "https://github.com/adaptivestone/framework",
98+
label: "GitHub (framework)",
99+
},
100+
],
101+
},
102+
],
103+
copyright: `Copyright © ${new Date().getFullYear()} Adaptivestone. Built with Docusaurus.`,
104+
},
105+
prism: {
106+
theme: themes.github,
107+
darkTheme: themes.dracula,
108+
},
109+
algolia: {
110+
// The application ID provided by Algolia
111+
appId: "02GVEKZGO7",
108112

109-
// Public API key: it is safe to commit it
110-
apiKey: "a8b923f9e517d9aa9642cb925e7d8178",
113+
// Public API key: it is safe to commit it
114+
apiKey: "a8b923f9e517d9aa9642cb925e7d8178",
111115

112-
indexName: "framework-adaptivestone",
116+
indexName: "framework-adaptivestone",
113117

114-
// Optional: see doc section below
115-
contextualSearch: true,
118+
// Optional: see doc section below
119+
contextualSearch: true,
116120

117-
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
118-
// externalUrlRegex: "external\\.com|domain\\.com",
121+
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
122+
// externalUrlRegex: "external\\.com|domain\\.com",
119123

120-
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
121-
// replaceSearchResultPathname: {
122-
// from: "/docs/", // or as RegExp: /\/docs\//
123-
// to: "/",
124-
// },
124+
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
125+
// replaceSearchResultPathname: {
126+
// from: "/docs/", // or as RegExp: /\/docs\//
127+
// to: "/",
128+
// },
125129

126-
// Optional: Algolia search parameters
127-
// searchParameters: {},
130+
// Optional: Algolia search parameters
131+
// searchParameters: {},
128132

129-
// Optional: path for search page that enabled by default (`false` to disable it)
130-
searchPagePath: "search",
133+
// Optional: path for search page that enabled by default (`false` to disable it)
134+
searchPagePath: "search",
131135

132-
//... other Algolia params
133-
},
134-
}),
136+
//... other Algolia params
137+
},
138+
}),
135139
};
136140

137141
export default config;

0 commit comments

Comments
 (0)