Skip to content

Akshay-Varma7/docs.pedscommons.org

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

334 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chicagopcdc.github.io

Repository of PCDC Documentation

Built with mkdocs material

Publish using mkdocs gh-deploy

Setup local DEV env

  • python -m venv env
  • source env/bin/activate
  • pip install -r requirements.txt

Setup local DEV env with Windows

  • bash
  • sudo apt-get update
  • sudo apt install python3.8-venv
  • python3 -m venv env
  • source env/bin/activate
  • pip3 install -r requirements.txt

Run local DEV env

  • source env/bin/activate
  • mkdocs serve to run it locally

Dev Process

  1. Create your feature branch out of dev
  2. Make the necessary changes
  3. Test locally with mkdocs serve and/or mkdocs build
  4. Once satified with the changes submit a PR to the dev branch

Github Action Setting setup

Email Notifications

Document update emails default to lgraglia@bsd.uchicago.edu Instructions to change email address:

  • Go to settings
  • on the left click the 'Secrets' tab
  • select action
  • go to the secret called EMAILLIST
  • If EMAILLIST doesn't exists create a new repository secret not an enviorment secret
  • put 'None' for default email or add alternative email address

Adding API Key and Key ID

The API request requires three redentials (Request URL, API key, & key ID) to complete a access token request. These three credentials will be stored in Github Secrets. To add or change them the instructions are as follows:

  • Go to settings
  • on the left click the 'Secrets' tab
  • select action
  • go to the secret
  • either edit or create a new secret
    • Must be named REQUESTURL, APIKEY and KEYID
  • put in corrisponding credentials
    • credentials can be gathered by going to the profile page and clicking the orange get API key button
    • further explanation at here

Running Workflows and Actions Locally

Use this link for refernce

  • install correct version of Homebrew for your device here
  • download Act extension using:
    • brew install act
  • test actions using act

examples:

  • act -W /path/to/chicagopcdc.github.io/.github/workflows/EmailDatPortGuide.yml -s EMAILLIST=None

About

Repository of PCDC Documentation

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 87.3%
  • JavaScript 12.6%
  • CSS 0.1%