Skip to content

Commit e9b5e04

Browse files
authored
Merge pull request #50 from UMLCloudComputing/dynamic-fetching
feat: Automatically fetch latest documentation from projects before build
2 parents ca68a7a + 9278acc commit e9b5e04

23 files changed

+59
-275
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
schedule:
8+
- cron: '0 0 * * *'
79

810
jobs:
911
build:
@@ -20,6 +22,9 @@ jobs:
2022
- name: Install dependencies
2123
run: npm install
2224

25+
- name: Fetch Latest Documentation
26+
run: npm run import
27+
2328
- name: Build Docusaurus site
2429
run: npm run build
2530

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@
2020
npm-debug.log*
2121
yarn-debug.log*
2222
yarn-error.log*
23-
#
23+
#
24+
25+
# Ignore everything in docs/projects except md files in the root of docs/projects
26+
docs/projects/*
27+
!docs/projects/*.md

.gitmodules

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

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,14 @@ react-mui-resume
179179
### In order to add your project:
180180
1. Create a new branch from the **main** branch
181181
2. Name the branch with the following convention: `feat: Add new project docs: PROJECTNAME` with `PROJECTNAME` being the name of your project.
182-
3. Run the following command from within the root directory of your new branch:
183-
``` shell
184-
git submodule add REPO_URL submodules/
185-
```
186-
`REPO_URL` is the **URL** for your repository. Do not confuse this with the `.git` link to your repository. It's specically the **URL**. <br/>
187-
IE for this very Github repository it's: https://github.com/UMLCloudComputing/UMLCloudComputing.github.io
188-
4. Open the `submodules_automation.sh` file for editing. Add the proper name of your git repository into the sequence called `projects`. Be sure to include a **space** between your repository name and the name of the previous repository. The **proper** name of your repository is typically simply the name of your repository. To be extra sure, confirm with the name of the folder added to `submodules/` marking your project. That folder is named the **proper** name of your repository.
189-
5. Run the script you just edited by calling the command `./submodules_automation.sh` or `bash submodules_automation.sh` from the root directory of your branch.
190-
6. Now your docs have been imported to the website's collection of docs. All that's left is to stage, commit and push the changes from your branch to the main branch.
191-
7. After your pull request is approved, your project's docs will be visible in production on the website!
192-
182+
3. Add your repository to package.json. Add your project as a key-value pair in the json file:
183+
``` json
184+
{
185+
"<Other Project>": "<Other Project Github URL>",
186+
"<Your Project Name>": "<Your Project Github URL>",
187+
}
188+
```
189+
4. Make a Pull Request to merge your branch into **main**. Your project will be added to the website once the PR is approved and merged.
193190

194191
## 🎉Acknowledgements
195192
Many thanks to the [UMass Lowell Cloud Computing Club](https://umasslowellclubs.campuslabs.com/engage/organization/cloudcomputingclub) members, our faculty advisor [Dr. Johannes Weis](https://www.uml.edu/sciences/computer-science/people/weis-johannes.aspx), and the [UMass Lowell Computer Science Department](https://www.uml.edu/Sciences/computer-science/) for their support and guidance.

docs/projects/UniBot/Intro.md

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

docs/projects/UniBot/Step 0: Contribution Guide.md

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

docs/projects/UniBot/Step 1: Introduction.md

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

docs/projects/UniBot/Step 2: Discord.md

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

docs/projects/UniBot/Step 3: Local Development Environment.md

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

docs/projects/UniBot/Step 4: Deployment.md

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

0 commit comments

Comments
 (0)