Skip to content

Commit 80549a4

Browse files
Merge pull request #2 from robotgoat/main
Modern Documentation Website
2 parents d0803f1 + eab02aa commit 80549a4

3,457 files changed

Lines changed: 294270 additions & 2885 deletions

File tree

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
20+
jobs:
21+
build:
22+
name: Build Docusaurus
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
cache: npm
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
- name: Build website
36+
run: npm run build
37+
38+
- name: Upload Build Artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: build
42+
43+
deploy:
44+
name: Deploy to GitHub Pages
45+
needs: build
46+
47+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
48+
permissions:
49+
pages: write # to deploy to Pages
50+
id-token: write # to verify the deployment originates from an appropriate source
51+
52+
# Deploy to the github-pages environment
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
*.gem
2-
*.swp
3-
*~
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
412
.DS_Store
5-
.analysis
6-
.bundle/
7-
.byebug_history
8-
.jekyll-metadata
9-
.ruby-gemset
10-
.ruby-version
11-
.sass-cache
12-
/test/source/file_name.txt
13-
/vendor
14-
Gemfile.lock
15-
_site/
16-
bin/
17-
bbin/
18-
coverage
19-
gh-pages/
20-
pkg/
21-
site/_site/
22-
test/dest
23-
tmp/*
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*

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

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

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# INAV: The New Documentation Project
2+
3+
![INAV](static/img/inav_home_dark.svg)
4+
5+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/iNavFlight/inav/nightly-build.yml?label=Nightly)
6+
![GitHub Tag](https://img.shields.io/github/v/tag/iNavFlight/inav?label=Release)
7+
![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)
8+
9+
10+
This project is the new and updated documentation built using Docusaurus V3.9.
11+
The current INAV documentation is scattered about in the Github Wiki and the docs directory of the main project.
12+
This documentation attempts to consolidate all the knowledge about INAV into a centralized, easy to access and read location.
13+
14+
To build and run the docs locally, install npm on your system and follow the Docusaurus installation instructions.
15+
16+
- Prepare the environment with `npm run clear` and `rm package-lock.json`.
17+
- Make sure all packages are installed with `npm install`.
18+
- Run the dev server with `npm run start`.
19+
20+
The temporary documentation can be accessed at this URL: https://www.spiffygoose.com/inavdocs/
21+
22+
## Versioning Scheme
23+
24+
The website utilizes Docusaurus's versioning feature to keep track of major changes to the firmware.
25+
The current version is the active stable release in the main `./docs` directory that is intended to be continually updated with minor updates until the next version.
26+
Upon the release of the next stable version, the current version will be archived (versioned) into its own directory using `npm run docusaurus docs:version x.y.z`
27+
Lastly, the next current version's label will updated in `docusaurus.config.ts`.
28+
29+
## Plugins Used
30+
31+
* The search plugin used is docusaurus-lunr-search: https://github.com/praveenn77/docusaurus-lunr-search
32+
* Image zoom plugin: https://github.com/gabrielcsapo/docusaurus-plugin-image-zoom

_config.yml

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

_layouts/default.html

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

_layouts/page.html

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

_layouts/post.html

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

_posts/2016-11-14-partnership.markdown

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

0 commit comments

Comments
 (0)