Skip to content

Commit 1147732

Browse files
authored
feat(docs): build docs in CI and deploy to gh pages (#849)
docs(gha): setup gha to build docs and ensure site builds
1 parent b2ef810 commit 1147732

File tree

6 files changed

+20575
-13
lines changed

6 files changed

+20575
-13
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
name: Build Docusaurus
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
cache: npm
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build website
23+
run: |
24+
npm run build
25+
ls website/build
26+
27+
- name: Upload Build Artifact
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: website/build/all-contributors
31+
deploy:
32+
name: Deploy to GitHub Pages
33+
needs: build
34+
permissions:
35+
pages: write
36+
id-token: write
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ desktop.ini
1111
# Optional eslint cache
1212
.eslintcache
1313

14-
# npm
15-
package-lock.json
14+
# yarn
15+
#package-lock.json
16+
yarn.lock
1617

1718
# Optional npm cache directory
1819
.npm

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Contribute to the All Contributors bot
2+
3+
We welcome contributions of all kinds to AllContributors.
4+
5+
## 13 August 2025 Update:
6+
7+
Currently, we are doing some work to revive the project. The documentation
8+
website is not online but we are working to get it online soon.
9+
10+
************* THE LINKS BELOW DON'T CURRENTLY WORK ******
11+
112
Read the contributing docs in:
213

314
- <a href="https://allcontributors.org/docs/en/project/contribute">English</a>

docs/project/contribute.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@ After you translate strings in any given language, you won't see those changes a
6262

6363
Search is by algolia, the configuration is at <https://github.com/algolia/docsearch-configs/blob/master/configs/all-contributors.json>
6464

65-
## Running the site locally:
65+
## Run the website locally:
6666

6767
All Contributors currently uses [Docusaurus 1.x](https://docusaurus.io) for our documentation website.
6868

6969
To build the docs locally:
7070

71-
Make sure `npm` is installed on your machine. Use the [nodejs documentation](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) if you aren't sure how to install `npm`.
71+
72+
* https://tutorial.docusaurus.io/docs/intro
73+
74+
1. Make sure `npm` is installed on your machine. Use the [nodejs documentation](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) if you aren't sure how to install `npm`.
75+
7276
To check that npm is installed run the following in your favorite shell:
7377

7478
`npm -v`
@@ -78,11 +82,11 @@ use:
7882

7983
`node -v`
8084

81-
If you don't have at least version `0.22` or higher, please install Node or upgrade your current version.
82-
85+
If you don't have atleast version `.22` or higher, please install node or upgrade your current version.
8386
Install docusaurus v1 (1.14.7) and all of the project dependencies using `npm install`. *Note: This project does not yet support docusaurus v2 or v3; though, we hope to do so in the future.*
87+
**`npm i` is shorthand for `npm install`)**:
8488

85-
`npm install`
89+
`npm i`
8690

8791
Once you have completed the above, you can launch a server locally that will build and run the docs locally. In your favorite shell run:
8892

@@ -98,7 +102,7 @@ check those changes. To run the linter yourself on a file locally:
98102

99103
First install markdownlint-cli:
100104

101-
`npm install -g markdownlint-cli`
105+
`npm i -g markdownlint-cli`
102106

103107
Then run markdownlint on the file (or files) that you wish to check:
104108

0 commit comments

Comments
 (0)