Skip to content

Commit b83cef4

Browse files
authored
Feature: New Website based on Docusaurus (BornToBeRoot#2610)
* Feature: New Website based on Docusaurus * Fix: Pipeline & minor improvements * CI: Improve pipeline * Docs: Create empty docs * CI: Rename job * CI: Rename job for mergify
1 parent ad08d9d commit b83cef4

62 files changed

Lines changed: 15712 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/mergify.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pull_request_rules:
22
- name: automatic merge for pull request based on label and ci success
33
conditions:
4-
- label~=LGTM$
5-
- check-success=continuous-integration/appveyor/pr
4+
- label~=LGTM$
5+
- check-success=continuous-integration/appveyor/pr
66
actions:
77
merge:
88
method: squash
@@ -22,7 +22,7 @@ pull_request_rules:
2222
method: squash
2323
- name: automatic merge for ImgBot pull requests based on ci success
2424
conditions:
25-
- author=imgbot[bot]
25+
- author=imgbot[bot]
2626
- check-success=continuous-integration/appveyor/pr
2727
actions:
2828
merge:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/deploy_website.yml'
9+
- 'Website/**'
10+
pull_request:
11+
12+
jobs:
13+
build-and-deploy-website:
14+
runs-on: ubuntu-22.04
15+
permissions:
16+
contents: write
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
defaults:
20+
run:
21+
working-directory: Website
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '18'
29+
30+
- name: Get yarn cache
31+
id: yarn-cache
32+
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"
33+
34+
- name: Cache dependencies
35+
uses: actions/cache@v3
36+
with:
37+
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
38+
key: ${{ runner.os }}-Website-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-Website-
41+
42+
- name: Install dependencies
43+
run: yarn install --frozen-lockfile
44+
45+
- name: Build website
46+
run: yarn build
47+
48+
- name: Deploy to GitHub Pages
49+
uses: peaceiris/actions-gh-pages@v3
50+
if: github.ref == 'refs/heads/main'
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
publish_dir: ./Website/build

‎InnoSetup.iss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define MyAppPublisher "BornToBeRoot"
77
#define MyAppURL "https://github.com/BornToBeRoot/NETworkManager/"
88
#define MyAppExeName "NETworkManager.exe"
9-
#define MyAppCopyright "Copyright (C) 2016-2023 BornToBeRoot"
9+
#define MyAppCopyright "Copyright (C) 2016-2024 BornToBeRoot"
1010

1111
[Setup]
1212
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.

‎Source/GlobalAssemblyInfo.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[assembly: AssemblyConfiguration("")]
44
[assembly: AssemblyCompany("")]
5-
[assembly: AssemblyCopyright("Copyright © 2016-2023 BornToBeRoot")]
5+
[assembly: AssemblyCopyright("Copyright © 2016-2024 BornToBeRoot")]
66
[assembly: AssemblyTrademark("")]
77
[assembly: AssemblyCulture("")]
88

‎Website/.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*

‎Website/README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NETworkManager website and documentation
2+
3+
Welcome to the new [NETworkManager](https://github.com/BornToBeRoot/NETworkManager) website and documentation.
4+
5+
It's build with [Docusaurus](https://docusaurus.io/), a static website generator, and is hosted on [GitHub Pages](https://pages.github.com/).
6+
7+
You can help to improve the documentation by submitting a pull request.
8+
9+
10+
## Software, services and images used
11+
12+
- [Docusaurus](https://docusaurus.io/)
13+
- [GitHub Pages](https://pages.github.com/)
14+
- [GitHub Actions Workflow](https://github.com/peaceiris/actions-gh-pages)
15+
16+
- Images
17+
- [undraw.co](https://undraw.co/)

‎Website/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+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
slug: welcome
3+
title: Welcome
4+
authors: [borntoberoot]
5+
tags: [welcome, networkmanager, docusaurus]
6+
---
7+
8+
Welcome to the new NETworkManager website and documentation.
9+
10+
It's build with [Docusaurus](https://docusaurus.io/), a static website generator, and hosted on [GitHub Pages](https://pages.github.com/).
11+
12+
You can help to improve the documentation by submitting a [pull request](https://github.com/BornToBeRoot/NETworkManager-docs).

‎Website/blog/authors.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
borntoberoot:
2+
name: BornToBeRoot
3+
title: Maintainer of NETworkManager
4+
url: https://github.com/BornToBeRoot
5+
image_url: https://github.com/BornToBeRoot.png
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Dashboard

0 commit comments

Comments
 (0)