Welcome to the Paradox AntiCheat documentation repository! This guide will help you contribute to the website, make changes, and test them locally before submitting a pull request.
Before contributing to the documentation, make sure you have the following installed:
- Node.js (v22.11.0 LTS is recommended)
- npm (comes with Node.js)
- A text editor like Visual Studio Code
- Fork the repository: Click on the "Fork" button on the Paradox_AntiCheat GitHub page.
- Clone the repository: Clone your fork to your local machine:
git clone https://github.com/<your-github-username>/Paradox_AntiCheat.git
- Navigate to the Paradox_AntiCheat (root) directory:
cd Paradox_AntiCheat
- Install Dependencies: In the Paradox_AntiCheat (root) directory, run the following command to install the necessary dependencies:
npm i
Docsify is used to generate the documentation site. To test changes locally:
- Start the Local Server: Run the following command at the root of Paradox_AntiCheat to start a local server:
This will start a local development server, and you can preview the documentation at http://localhost:4000 unless otherwise specified.
node server.js
- Make Changes: Edit the Markdown files in the /docs directory. You can add new content, update existing sections, or fix formatting issues.
- Preview Your Changes: As you make changes, the local Docsify server will automatically reload the page to show your updates after you refresh the page.
- Gracefully Stop the Server: Once you're done testing locally, you can stop the server gracefully by pressing `Ctrl + C` in the terminal where the server is running. This will terminate the server process.
- Commit Your Changes: Once you’re happy with your changes, commit them:
git add .
git commit -m "Description of the changes"
- Push Your Changes: Push your changes to your forked repository:
git push origin <branch-name>
- Create a Pull Request: Go to the original Paradox_AntiCheat GitHub repository and create a pull request with your changes. Be sure to include a clear description of what changes you’ve made.
- Markdown Formatting: Ensure that your Markdown files are well formatted. You can use tools like Markdownlint for checking formatting.
- Docsify Features: Refer to the Docsify documentation for more details on customizing the documentation site.
Thank you for contributing to Paradox AntiCheat documentation!