Skip to content

Commit 7141ded

Browse files
committed
Add docs site
1 parent 8eac4c4 commit 7141ded

26 files changed

+9407
-0
lines changed

.github/workflows/update-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Push docs to GitHub pages.
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
paths:
7+
- docs/**
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
# 👇 Build steps
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: yarn
31+
cache-dependency-path: ./docs/yarn.lock
32+
- name: Install dependencies
33+
working-directory: ./docs
34+
run: yarn install --non-interactive
35+
- name: Build
36+
working-directory: ./docs
37+
run: yarn build
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v2
42+
with:
43+
path: ./docs/build
44+
deploy:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v3

docs/.gitignore

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# TernJS port file
120+
.tern-port
121+
122+
# Stores VSCode versions used for testing VSCode extensions
123+
.vscode-test
124+
125+
# yarn v2
126+
.yarn/cache
127+
.yarn/unplugged
128+
.yarn/build-state.yml
129+
.yarn/install-state.gz
130+
.pnp.*
131+
132+
build/

docs/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

docs/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

docs/babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

docs/docs/_category_.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
link:
2+
type: doc
3+
id: intro

docs/docs/intro.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Taurus
2+
3+
Acceleration Backend Agnostic Tensor calculation library
4+

docs/docusaurus.config.ts

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
import {themes as prismThemes} from 'prism-react-renderer';
2+
import type {Config} from '@docusaurus/types';
3+
import type * as Preset from '@docusaurus/preset-classic';
4+
5+
const organizationName = "Reboot-Codes";
6+
const projectName = "taurus";
7+
8+
const config: Config = {
9+
title: 'Taurus',
10+
tagline: 'Acceleration Backend Agnostic Tensor calculation library ',
11+
favicon: 'img/favicon.ico',
12+
13+
// Set the production url of your site here
14+
url: 'https://taurus.reboot-codes.com',
15+
// Set the /<baseUrl>/ pathname under which your site is served
16+
// For GitHub pages deployment, it is often '/<projectName>/'
17+
baseUrl: `/`,
18+
19+
// GitHub pages deployment config.
20+
// If you aren't using GitHub pages, you don't need these.
21+
organizationName, // Usually your GitHub org/user name.
22+
projectName, // Usually your repo name.
23+
24+
onBrokenLinks: 'warn',
25+
onBrokenMarkdownLinks: 'warn',
26+
27+
// Even if you don't use internationalization, you can use this field to set
28+
// useful metadata like html lang. For example, if your site is Chinese, you
29+
// may want to replace "en" with "zh-Hans".
30+
i18n: {
31+
defaultLocale: 'en',
32+
locales: ['en'],
33+
},
34+
35+
presets: [
36+
[
37+
'classic',
38+
{
39+
docs: {
40+
sidebarPath: './sidebars.ts',
41+
// Please change this to your repo.
42+
// Remove this to remove the "edit this page" links.
43+
editUrl:
44+
`https://github.com/${organizationName}/${projectName}/tree/main/docs`,
45+
},
46+
theme: {
47+
customCss: './src/css/custom.css',
48+
},
49+
} satisfies Preset.Options,
50+
],
51+
],
52+
53+
themeConfig: {
54+
// Replace with your project's social card
55+
image: 'img/docusaurus-social-card.jpg',
56+
navbar: {
57+
title: 'CLOVER',
58+
logo: {
59+
alt: 'Clover Logo',
60+
src: 'img/logo.svg',
61+
},
62+
items: [
63+
{
64+
type: 'docSidebar',
65+
sidebarId: 'docsSidebar',
66+
position: 'left',
67+
label: 'Docs',
68+
},
69+
{
70+
href: `https://github.com/${organizationName}/${projectName}`,
71+
label: 'Source',
72+
position: 'right',
73+
},
74+
],
75+
},
76+
footer: {
77+
style: 'dark',
78+
links: [
79+
{
80+
title: 'Docs',
81+
items: [
82+
{
83+
label: 'Docs',
84+
to: '/docs/intro',
85+
},
86+
],
87+
},
88+
{
89+
title: 'Community',
90+
items: [
91+
{
92+
label: 'Source',
93+
href: `https://github.com/${organizationName}/${projectName}`,
94+
},
95+
],
96+
},
97+
],
98+
copyright: `Copyright © ${new Date().getFullYear()} Reboot/Fitz.`,
99+
},
100+
prism: {
101+
theme: prismThemes.github,
102+
darkTheme: prismThemes.dracula,
103+
},
104+
} satisfies Preset.ThemeConfig,
105+
};
106+
107+
export default config;

docs/package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "taurus-docs",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"docusaurus": "docusaurus",
7+
"start": "docusaurus start",
8+
"build": "docusaurus build",
9+
"swizzle": "docusaurus swizzle",
10+
"deploy": "docusaurus deploy",
11+
"clear": "docusaurus clear",
12+
"serve": "docusaurus serve",
13+
"write-translations": "docusaurus write-translations",
14+
"write-heading-ids": "docusaurus write-heading-ids",
15+
"typecheck": "tsc"
16+
},
17+
"dependencies": {
18+
"@docusaurus/core": "3.4.0",
19+
"@docusaurus/preset-classic": "3.4.0",
20+
"@mdx-js/react": "^3.0.0",
21+
"clsx": "^2.0.0",
22+
"prism-react-renderer": "^2.3.0",
23+
"react": "^18.0.0",
24+
"react-dom": "^18.0.0"
25+
},
26+
"devDependencies": {
27+
"@docusaurus/module-type-aliases": "3.4.0",
28+
"@docusaurus/tsconfig": "3.4.0",
29+
"@docusaurus/types": "3.4.0",
30+
"typescript": "~5.2.2"
31+
},
32+
"browserslist": {
33+
"production": [
34+
">0.5%",
35+
"not dead",
36+
"not op_mini all"
37+
],
38+
"development": [
39+
"last 3 chrome version",
40+
"last 3 firefox version",
41+
"last 5 safari version"
42+
]
43+
},
44+
"engines": {
45+
"node": ">=18.0"
46+
}
47+
}

0 commit comments

Comments
 (0)