Skip to content

bd2kccd/bd2kccd.github.io

Repository files navigation

bd2kccd.github.io

This is the project documentation repo of CCD software and tools. It uses MkDocs to generate the static documentation site pages that are hosted on Github Pages.

Below are the steps to contrubite to the CCD docs:

1. Installing MkDocs v1.5.3

We suggest all contributors to install MkDocs using pip and verify that the version 1.5.3 is installed since this version has many updates and looks stable.

2. Cloning the bd2kccd.github.io Repository

Before starting to work on the documentations, you'll need to clone this repo to create a local copy.

git clone https://github.com/bd2kccd/bd2kccd.github.io.git
cd bd2kccd.github.io

3. Creating a New Branch to Exercise Your Changes

Now you can create a new branch off the master branch to make changes locally.

git checkout -b your_new_branch

4. Starting the MkDocs Development Server

MkDocs comes with a built-in dev-server that lets you preview your documentation as you work on it. Make sure you're in the same directory as the mkdocs.yml configuration file, and then start the server by running

mkdocs serve

Then open up http://127.0.0.1:8000/ in your browser, and you'll see the home page being displayed.

5. Adding/Editing Pages

All the source markdown files are stored in the /docs_src folder. Just follow the instructions to add new pages or edit existing content.

You'll also need to edit settings in the mkdocs.yml file to configure site pages and navigation.

6. Building/Generating the Static Site for Staging

./build_stage.sh

This command will build and generate the static content site and store all the static files at /stage folder.

7. Reviewing Changes Locally

Before pushing all changes back to Github repo and then sending a pull request, you'll need to review your local changes in the development server.

8. Sending a Pull Request for Changes Review

Once everything looks good in your local development server, push them to your branch on Github. Then create a new pull request based on the master branch so your cahnges will be reviewed before merging into the master branch. And once it's merged successfully, you'll be able to see the updated Github Pages site at https://bd2kccd.github.io/stage for all ther team members to review on a live staging site.

9. Pushing to Production Site

The owner of this repo will build the production site based on the review results by using

./build_production.sh

This generaes all the static content into the docs folder. And once it's pushed back to Github, the production site can be accessed at https://bd2kccd.github.io/docs

Notes

The index.html in the root directory of this repo serves as the entry point of the domain name https://bd2kccd.github.io, and it redirects the users to https://bd2kccd.github.io/docs to view the MkDocs generated static content. Just leave it there if you don't need to display anything by default.