Skip to content

Commit

Permalink
Merge branch 'main' into feat/ci-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Johnson authored Dec 3, 2022
2 parents e9946a4 + 744321f commit 7f92c79
Show file tree
Hide file tree
Showing 84 changed files with 15,477 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/gen-docs-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Docusaurus add version
on:
release:
types: [published]

jobs:
gen-docs-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache node_modules
uses: actions/cache@v3
with:
path: docs/node_modules
key: node_modules-${{ hashFiles('**/yarn.lock') }}

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
cache-dependency-path: docs/yarn.lock

- name: Install Dependencies
run: yarn install
working-directory: ./docs

- name: Generate docusaurus docs for ${{ github.ref_name }}
run: yarn run docusaurus docs:version ${{ github.ref_name }}
working-directory: ./docs

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: 'chore: docusaurus deploy version ${{ github.ref_name }}'
commit-message: 'chore(docs): deploy version ${{ github.ref_name }}'
body: ''
base: main
branch: chore/docs/new-version
add-paths: |
docs/
13 changes: 13 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
versions: {
current: {
label: "nightly",
path: "nightly",
badge: true,
banner: "unreleased", // put 'none' to remove
},
},
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
},
Expand Down Expand Up @@ -87,6 +95,11 @@ const config = {
label: `Back to Ignite`,
position: "right",
},
{
type: "docsVersionDropdown",
position: "left",
dropdownActiveClassDisabled: true,
},
],
},
footer: {
Expand Down
7 changes: 7 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@ GIT_USER=<Your GitHub username> yarn deploy
```

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.

### Add new version

```bash
$ yarn run docusaurus docs:version v0.25.2
```

14 changes: 14 additions & 0 deletions docs/versioned_docs/version-v0.25.2/06-bounty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
sidebar_position: 8
description: Ignite CLI bounty program incentives and rewards.
---

# Bounty program

Our Ignite CLI bounty program provides incentives for your participation and pays rewards. If you know Golang, follow the bounty issues, write code, close issues, and get rewarded.

Do your bounty hunting in our repo. Track new, in-progress, and completed bounties on the [Bounty board](https://github.com/ignite/cli/projects/5) in GitHub.

For details on the Ignite CLI bounty program, join the #bounty channel in [Ignite Discord](https://discord.com/invite/ignite).

New bounties are posted and claimed in Discord on the #bounty announcement channel.
Loading

0 comments on commit 7f92c79

Please sign in to comment.