Skip to content

SCF-Public-Goods-Maintenance/scf-public-goods-maintenance.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCF Public Goods Maintenance

Project documentation for SCF Public Goods Maintenance process and tooling.

Browse the documentation here: https://scf-public-goods-maintenance.github.io/

Contributor Setup: Automated Formatting & Linting

To maintain a consistent line length of 101 characters across all documentation, we use pre-commit to automate the "folding" of Markdown files.

1. Install pre-commit

You only need to do this once on your machine:

  • macOS/Linux (Homebrew): brew install pre-commit
  • Any OS (Python/Pip): pip install pre-commit

2. Activate Hooks

Run this command in the project root to link the hooks to your local Git:

pre-commit install

3. Usage

Automatic: When you run git commit, the hooks will automatically fold any long lines. If changes are made, simply git add the file again and commit.

Manual Check: To check all files without committing, run:

pre-commit run --all-files

Recommended: VS Code Setup

If you use VS Code, install the Prettier and markdownlint extensions. The project's .vscode/settings.json is already configured to fold lines automatically whenever you save.

Local Pages Build

GitHub automatically builds this project as a Pages sites on pushes to the main branch. For smaller content edits, it's not necessary to preview a local build. This is, however, recommended for larger changes, especially those that affect the Jekyll config or theme.

  1. Install Jekyll
  2. Local dev preview:
cd docs/
bundle exec jekyll serve --watch

About

Project documentation for SCF Public Goods Maintenance structure and tooling

Resources

Stars

Watchers

Forks

Contributors