Skip to content

Commit da80a81

Browse files
committed
docs(gha): setup gha to build docs and ensure site builds
1 parent 67d2fb1 commit da80a81

File tree

9 files changed

+20628
-8793
lines changed

9 files changed

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@ sidebar_label: Emoji Key ✨
88

99
> To have a contribution added when using the [Bot](bot/overview) or [CLI](cli/overview) use the keyword in the `Type` column. The bot will also use [basic Natural Language Parsing](https://github.com/all-contributors/app/blob/master/lib/parse-comment.js) to determine your contribution intent.
1010
11-
Emoji/Type | Represents | Comments
12-
:---: | :---: | :---:
13-
🔊 <br /> `audio` | Audio | Podcasts, background music or sound effects
14-
♿️ <br /> `a11y` | Accessibility | Reporting or working on accessibility issues
15-
🐛 <br /> `bug` | Bug reports | Links to issues reported by the user on this project
16-
📝 <br /> `blog` | Blogposts | Links to the blogpost
17-
💼 <br /> `business` | Business Development | People who execute on the business end
18-
💻 <br /> `code` | Code | Links to commits by the user on this project
19-
🖋 <br /> `content` | Content | e.g. website copy, blog posts are separate
20-
🔣 <br /> `data` | Data | Links to contributed data for the project (both tests and datasets)
21-
📖 <br /> `doc` | Documentation | Links to commits by the user on this project, Wiki, or other source of documentation
22-
🎨 <br /> `design` | Design | Links to the logo/iconography/visual design/etc.
23-
💡 <br /> `example` | Examples | Links to the examples
11+
Emoji/Type | Represents | Comments |
12+
:---: | :---: | :---: |
13+
🔊 <br /> `audio` | Audio | Podcasts, background music or sound effects |
14+
♿️ <br /> `a11y` | Accessibility | Reporting or working on accessibility issues |
15+
🐛 <br /> `bug` | Bug reports | Links to issues reported by the user on this project |
16+
📝 <br /> `blog` | Blogposts | Links to the blogpost |
17+
💼 <br /> `business` | Business Development | People who execute on the business end |
18+
💻 <br /> `code` | Code | Links to commits by the user on this project |
19+
🖋 <br /> `content` | Content | e.g. website copy, blog posts are separate |
20+
🔣 <br /> `data` | Data | Links to contributed data for the project (both tests and datasets) |
21+
📖 <br /> `doc` | Documentation | Links to commits by the user on this project, Wiki, or other source of documentation |
22+
🎨 <br /> `design` | Design | Links to the logo/iconography/visual design/etc. |
23+
💡 <br /> `example` | Examples | Links to the examples |
2424
📋 <br /> `eventOrganizing` | Event Organizers | Links to event page |
25-
💵 <br /> `financial` | Financial Support | People or orgs who provide financial support, links to relevant page
26-
🔍 <br /> `fundingFinding` | Funding/Grant Finders | People who help find financial support
25+
💵 <br /> `financial` | Financial Support | People or orgs who provide financial support, links to relevant page |
26+
🔍 <br /> `fundingFinding` | Funding/Grant Finders | People who help find financial support |
2727
🤔 <br /> `ideas` | Ideas & Planning | |
28-
🚇 <br /> `infra` | Infrastructure | Hosting, Build-Tools, etc. Links to source file (like `travis.yml`) in repo, if applicable
29-
🚧 <br /> `maintenance` | Maintenance | People who help in maintaining the repo, links to commits by the user on this project
30-
🧑‍🏫 <br /> `mentoring` | Mentoring | People who mentor new contributors, links to the repo home
28+
🚇 <br /> `infra` | Infrastructure | Hosting, Build-Tools, etc. Links to source file (like `travis.yml`) in repo, if applicable |
29+
🚧 <br /> `maintenance` | Maintenance | People who help in maintaining the repo, links to commits by the user on this project |
30+
🧑‍🏫 <br /> `mentoring` | Mentoring | People who mentor new contributors, links to the repo home |
3131
📦 <br /> `platform` | Packaging | Porting to support a new platform |
32-
🔌 <br /> `plugin` | Plugin/utility libraries | Links to the repo home
32+
🔌 <br /> `plugin` | Plugin/utility libraries | Links to the repo home |
3333
📆 <br /> `projectManagement` | Project Management | |
3434
📣 <br /> `promotion` | Promotion | |
35-
💬 <br /> `question` | Answering Questions | Answering Questions in Issues, Stack Overflow, Gitter, Slack, etc.
36-
🔬 <br /> `research` | Research | Literature review.
35+
💬 <br /> `question` | Answering Questions | Answering Questions in Issues, Stack Overflow, Gitter, Slack, etc. |
36+
🔬 <br /> `research` | Research | Literature review. |
3737
👀 <br /> `review` | Reviewed Pull Requests | |
38-
🛡️ <br /> `security` | Security | Identify and/or reduce security threats, GDPR, Privacy, etc
39-
🔧 <br /> `tool` | Tools | Links to the repo home
40-
🌍 <br /> `translation` | Translation | Links to the translated content
41-
⚠️ <br /> `test` | Tests | Links to commits by the user on this project
42-
✅ <br /> `tutorial` | Tutorials | Links to the tutorial
43-
📢 <br /> `talk` | Talks | Links to the slides/recording/repo/etc
44-
📓 <br /> `userTesting` | User Testing | Links to user test notes
45-
📹 <br /> `video` | Videos | Links to the video
38+
🛡️ <br /> `security` | Security | Identify and/or reduce security threats, GDPR, Privacy, etc |
39+
🔧 <br /> `tool` | Tools | Links to the repo home |
40+
🌍 <br /> `translation` | Translation | Links to the translated content |
41+
⚠️ <br /> `test` | Tests | Links to commits by the user on this project |
42+
✅ <br /> `tutorial` | Tutorials | Links to the tutorial |
43+
📢 <br /> `talk` | Talks | Links to the slides/recording/repo/etc |
44+
📓 <br /> `userTesting` | User Testing | Links to user test notes |
45+
📹 <br /> `video` | Videos | Links to the video |
4646

4747
## What's next
4848

docs/project/contribute.md

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,41 @@ 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

67-
All Contributors uses Docusaurus to maintain our documentation website. For more info visit the [Docusaurus Website](https://docusaurus.io)
67+
All Contributors currently uses [Docusaurus 1.x](https://docusaurus.io) for our documentation website.
6868

69-
To get started locally:
69+
To build the docs locally:
7070

71-
- `yarn install`
72-
- `yarn start`
73-
- go to `http://localhost:3000` (Refresh the page for your changes to be reflected)
71+
* https://tutorial.docusaurus.io/docs/intro
72+
73+
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`.
74+
75+
To check that npm is installed run the following in your favorite shell:
76+
77+
`npm -v`
78+
79+
Next, make sure you have atleast node version 0.22 or higher. To check the version,
80+
use:
81+
82+
`node -v`
83+
84+
If you don't have atleast version `.22` or higher, please install node or upgrade your current version.
85+
86+
Install the newest (deprecated) version of Docusaurus:
87+
88+
`npm install docusaurus@1.14.7 --save-dev`
89+
90+
Then install the dependencies (`npm i` is shorthand for `npm install`):
91+
92+
`npm i`
93+
94+
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:
95+
96+
`npm run start`
97+
98+
- Then, go to `http://localhost:3000` and you will see the all contributors website there!
99+
- Refresh the page as you make changes to the markdown pages in site locally
74100

75101
## Add yourself as a contributor
76102

0 commit comments

Comments
 (0)