Skip to content

Commit 5c888dd

Browse files
committed
docs: update documentation with upcoming new features
this commit contains new docs for the upcoming release of mathflow
1 parent 1dcc6ca commit 5c888dd

File tree

16 files changed

+1618
-367
lines changed

16 files changed

+1618
-367
lines changed

β€Ždocs/.vitepress/config.tsβ€Ž

Lines changed: 75 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,101 @@
11
import { defineConfig } from 'vitepress';
22

3+
const socialHandle = "@devhenryhale"
4+
const ogUrl = 'https://mathflow.js.org';
5+
const ogImage = `${ogUrl}/og-image.png`;
6+
const desc = 'A lightweight and expressive scripting language designed for mathematical expressions and calculations.'
7+
38
// https://vitepress.dev/reference/site-config
49
export default defineConfig({
510
base: '/',
611
lang: 'en-US',
712
title: 'MathFlow',
8-
description:
9-
'A lightweight and expressive scripting language designed for mathematical expressions and calculations.',
10-
head: [['link', { rel: 'icon', href: '/logo.svg' }]],
13+
description: desc,
14+
head: [
15+
['link', { rel: 'icon', href: '/logo.svg' }],
16+
['meta', { name: 'theme-color', content: '#4169e1' }],
17+
['meta', { property: 'og:type', content: 'website' }],
18+
['meta', { property: 'og:title', content: 'MathFlow' }],
19+
['meta', { property: 'og:image', content: ogImage }],
20+
['meta', { property: 'og:url', content: ogUrl }],
21+
['meta', { property: 'og:description', content: desc }],
22+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
23+
['meta', { name: 'twitter:site', content: socialHandle }],
24+
['meta', { name: 'twitter:title', content: 'MathFlow' }],
25+
['meta', { name: 'twitter:description', content: desc }],
26+
['meta', { name: 'twitter:image', content: ogImage }]
27+
],
1128
themeConfig: {
1229
// https://vitepress.dev/reference/default-theme-config
1330
logo: '/logo.svg',
1431
siteTitle: 'MathFlow',
32+
1533
search: {
16-
provider: 'local'
34+
provider: 'local',
35+
options: {
36+
detailedView: true,
37+
miniSearch: {
38+
searchOptions: {
39+
fuzzy: 0.2,
40+
prefix: true,
41+
boost: {
42+
title: 4,
43+
text: 2,
44+
titles: 1
45+
}
46+
}
47+
}
48+
}
49+
},
50+
51+
outline: {
52+
label: 'On this page',
53+
level: [2, 3]
1754
},
1855
nav: [
1956
{ text: 'Home', link: '/' },
2057
{ text: 'Guide', link: '/guide/' },
58+
{ text: 'API', link: '/api/' },
59+
{ text: 'Examples', link: '/examples/' },
2160
{ text: 'Playground', link: '/playground/' },
22-
// { text: 'Demo', link: 'https://mathflow.github.io/demo' },
2361
{
24-
text: 'About',
62+
text: 'v1.0.0',
2563
items: [
26-
{ text: 'Team', link: '/about/team' },
27-
{ text: 'History', link: '/about/history' },
28-
{ text: 'Code of Conduct', link: '/about/coc' }
64+
{
65+
text: 'Changelog',
66+
link: 'https://github.com/mathflowjs/mathflow/blob/main/CHANGELOG.md'
67+
},
68+
{
69+
text: 'Contributing',
70+
link: 'https://github.com/mathflowjs/mathflow/#contributing'
71+
},
72+
{ text: 'Team', link: '/about' },
2973
]
3074
}
3175
],
3276

3377
sidebar: [
3478
{
35-
text: 'Guide',
79+
text: 'Introduction',
80+
collapsed: false,
3681
items: [
37-
{ text: 'Introduction', link: '/guide/' },
82+
{ text: 'What is MathFlow?', link: '/guide/' },
3883
{ text: 'Getting Started', link: '/guide/getting-started' },
3984
]
4085
},
4186
{
42-
text: 'Syntax',
87+
text: 'Core Concepts',
88+
collapsed: false,
4389
items: [
4490
{ text: 'Basics', link: '/guide/basics' },
4591
{ text: 'Variables', link: '/guide/variables' },
4692
{ text: 'Expressions', link: '/guide/expressions' },
47-
{ text: 'Builtins', link: '/guide/builtin' }
93+
{ text: 'Built-in Functions', link: '/guide/builtin' }
4894
]
4995
},
5096
{
51-
text: 'Reference',
97+
text: 'API Reference',
98+
collapsed: false,
5299
items: [
53100
{ text: 'Context API', link: '/api/' },
54101
{ text: 'Procedural API', link: '/api/procedural' },
@@ -57,11 +104,12 @@ export default defineConfig({
57104
]
58105
},
59106
{
60-
text: 'Examples',
107+
text: 'Showcase',
108+
collapsed: false,
61109
items: [
62-
{ text: 'Samples', link: '/examples/' }
110+
{ text: 'Examples', link: '/examples/' },
63111
]
64-
}
112+
},
65113
],
66114

67115
socialLinks: [
@@ -70,18 +118,20 @@ export default defineConfig({
70118

71119
editLink: {
72120
text: 'Edit this page on GitHub',
73-
pattern:
74-
'https://github.com/mathflowjs/mathflowjs.github.io/edit/master/docs/:path'
121+
pattern: 'https://github.com/mathflowjs/mathflowjs.github.io/edit/main/docs/:path'
75122
},
76123

77124
footer: {
78-
message:
79-
'Released under the <a href="https://github.com/mathflowjs/mathflow/blob/master/LICENSE.txt">MIT License</a>.',
80-
copyright:
81-
'Copyright &copy; 2024-present, <a href="https://github.com/henryhale">Henry Hale</a>.'
125+
message: 'Released under the <a href="https://github.com/mathflowjs/mathflow/blob/master/LICENSE.txt">MIT License</a>.',
126+
copyright: 'Copyright &copy; 2024-present, <a href="https://github.com/henryhale">Henry Hale</a>.'
82127
}
83128
},
129+
84130
markdown: {
85-
lineNumbers: false
86-
}
131+
lineNumbers: false,
132+
theme: {
133+
light: 'github-light',
134+
dark: 'github-dark'
135+
},
136+
},
87137
});

β€Ždocs/about/coc.mdβ€Ž

Lines changed: 0 additions & 128 deletions
This file was deleted.

β€Ždocs/about/history.mdβ€Ž

Lines changed: 0 additions & 18 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
Β (0)