Working with the DocuHub repository
DocuHub is hosted on GitHub, which offers plenty of options to contribute your changes to the site.
Minor Edits
To make minor edits, follow these steps:
- Visit docs.ciroh.org and navigate to the page you wish to modify.
- Click on "Edit page" at the bottom of the page to make any necessary changes.
- Submit a Pull Request.
- An admin will review and merge your changes.
Major Edits
For significant modifications, please adhere to these steps:
- Fork the repository from https://github.com/CIROH-UA/ciroh-ua_website.
- After forking, implement your changes and commit them to your local repository.
- Open a pull request. Once submitted, an admin will review and merge it.
- GitHub Actions will automatically compile and publish the updates.
If you encounter any issues or have inquiries, please feel free to email us at ciroh-it-admin@ua.edu. Your contributions are highly valued!
Testing changes locally
Please be sure to create a fork using the steps above before continuing.
- If you haven't already, download and install the LTS version of Node.js from here.
- To build and run the project locally, navigate to the project directory in your command line interface of choice.
- Execute the following commands:
npm install
npm run build
npm run start
To quickly test out your changes, use this command:
$ npm run start
This command launches a local development server and opens a browser window. Changes are typically reflected instantly without requiring a server restart.
To deploy the website, you can instead compile the project into a deployable package:
$ npm run build
This will create a build directory within your project folder. You can then deploy the contents of this directory to your web server.
Video Tutorial:
Still need some extra help? If so, the following video is a step-by-step guide on how to make minor edits, major edits, and test changes locally: