Skip to content

Commit b719876

Browse files
committed
initial commit
0 parents  commit b719876

27 files changed

+9206
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
build:
12+
name: Build Docusaurus
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
cache: yarn
22+
23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
- name: Build website
26+
run: yarn build
27+
28+
- name: Upload Build Artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: build
32+
33+
deploy:
34+
name: Deploy to GitHub Pages
35+
needs: build
36+
37+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38+
permissions:
39+
pages: write # to deploy to Pages
40+
id-token: write # to verify the deployment originates from an appropriate source
41+
42+
# Deploy to the github-pages environment
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

.prettierignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
dist
2+
node_modules
3+
.yarn
4+
build
5+
coverage
6+
.docusaurus
7+
.github
8+
.drone.yml
9+
10+
docs
11+
12+
*.md
13+
14+
i18n
15+
versions.json
16+
docusaurus.config.ts
17+
versioned_sidebars/*.json
18+
19+
static/katex/katex.min.css
20+
.vscode/*.code-snippets
21+
*.mp4
22+
*.mp3
23+
*.jpeg
24+
*.jpg
25+
*.png
26+
static/p/reveal.js

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"bracketSameLine": false,
5+
"printWidth": 110,
6+
"proseWrap": "never",
7+
"singleQuote": true,
8+
"trailingComma": "none",
9+
"tabWidth": 4
10+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Website
2+
3+
## Logo
4+
5+
https://www.canva.com/

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/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
sidebar_position: 0
3+
---
4+
# Math

docs/vektoren/_category_.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
position: 2
2+
label: 'Vektoren'
3+
collapsible: true
4+
collapsed: false

docs/vektoren/compare-lines.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
tags:
3+
- Vektoren
4+
- Geraden
5+
- Schnittgerade
6+
---
7+
import VectorLineComparer from '@site/src/components/VectorLineComparer';
8+
9+
# Geraden Vergleichen
10+
11+
<VectorLineComparer />

docusaurus.config.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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 config: Config = {
6+
title: 'Mathematik',
7+
tagline: 'Math Tools',
8+
favicon: 'img/favicon.ico',
9+
10+
// Set the production url of your site here
11+
url: 'https://bh0fer.github.io',
12+
// Set the /<baseUrl>/ pathname under which your site is served
13+
// For GitHub pages deployment, it is often '/<projectName>/'
14+
baseUrl: '/math/',
15+
16+
// GitHub pages deployment config.
17+
// If you aren't using GitHub pages, you don't need these.
18+
organizationName: 'bh0fer', // Usually your GitHub org/user name.
19+
projectName: 'math', // Usually your repo name.
20+
21+
onBrokenLinks: 'throw',
22+
onBrokenMarkdownLinks: 'warn',
23+
24+
// Even if you don't use internationalization, you can use this field to set
25+
// useful metadata like html lang. For example, if your site is Chinese, you
26+
// may want to replace "en" with "zh-Hans".
27+
i18n: {
28+
defaultLocale: 'de',
29+
locales: ['de'],
30+
},
31+
32+
presets: [
33+
[
34+
'classic',
35+
{
36+
docs: {
37+
sidebarPath: './sidebars.ts',
38+
routeBasePath: '/',
39+
// Please change this to your repo.
40+
// Remove this to remove the "edit this page" links.
41+
editUrl:
42+
'https://github.com/bh0fer/math/tree/main/',
43+
},
44+
blog: false,
45+
theme: {
46+
customCss: './src/css/custom.scss',
47+
},
48+
} satisfies Preset.Options,
49+
],
50+
],
51+
52+
themeConfig: {
53+
// Replace with your project's social card
54+
image: 'img/math-social-card.jpg',
55+
navbar: {
56+
logo: {
57+
alt: 'Math Logo',
58+
src: 'img/logo.svg',
59+
},
60+
items: [
61+
{
62+
href: 'https://github.com/bh0fer/math',
63+
label: 'GitHub',
64+
position: 'right',
65+
},
66+
],
67+
},
68+
footer: {
69+
style: 'dark',
70+
links: [],
71+
copyright: `Copyright © ${new Date().getFullYear()} hfr. Built with Docusaurus.`,
72+
},
73+
prism: {
74+
theme: prismThemes.github,
75+
darkTheme: prismThemes.dracula,
76+
},
77+
} satisfies Preset.ThemeConfig,
78+
plugins: ['docusaurus-plugin-sass'],
79+
};
80+
81+
export default config;

0 commit comments

Comments
 (0)