How to Contribute to COLIB
Welcome to the COLIB contribution guide! This page will help you understand how to contribute models and test cases to the COLIB library using our standardized templates and tools.
What is QMD format?
COLIB uses Quarto Markdown (QMD) format for all documentation pages. QMD is an extension of standard Markdown that allows you to:
- Write scientific documentation with LaTeX math equations
- Include executable code blocks
- Create interactive plots and figures
- Generate citations and references automatically
- Produce high-quality HTML, PDF, and other output formats
- Native support for mathematical equations using LaTeX syntax
- Automatic cross-referencing of figures, tables, and equations
- Bibliography management with BibTeX
- Code execution and result embedding
- Professional formatting and styling
Choosing Your Template
COLIB provides two main contribution templates depending on what you want to add:
Model Template
Use the Model Template when you want to contribute on:
- Mathematical models of power system components
- Control system descriptions
- Algorithm implementations
- Component behavior models
- Context (mandatory)
- Model use, assumptions, validity domain and limitations (mandatory)
- Model description (mandatory)
- Source code (optional)
- Open source implementations (if any)
- Table of references & license
Test Case Template
Use the Test Case Template when you want to contribute on:
- Validation scenarios
- Benchmark test systems
- Simulation examples
- Performance comparisons
- Use case purpose and context (mandatory)
- Network description (mandatory)
- Static and Dynamic models description (mandatory)
- Input Data (mandatory)
- Scenarios (at least one mandatory)
- Simulation parameters (optional)
- Outputs (mandatory)
- Open source implementations (if any)
- Table of references & license
Existing page improvements
You can also contribute enhance the current COLIB content by:
- Refining and enriching existing documentation quality
- Supplementing current model or test case descriptions with missing details
- Fixing inaccuracies, typos, or outdated information
- Adding practical examples, clarifications, or better explanations
- Updating references, citations, or technical specifications
- Improving formatting, structure, or readability
- And much more!
- Browse and select the specific page you wish to enhance from the COLIB repository
- Document your improvements by creating a detailed GitHub issue explaining what changes you propose and why
- Provide your modifications either as an updated QMD file attachment or as specific textual changes in the issue
- Submit for review - your contribution will go through the same quality review process as new content submissions
Installing and Using Quarto
Installation
1. Install Quarto
Visit the official Quarto website and download the installer for your operating system:
- Windows: Download the
.msi
installer - macOS: Download the
.pkg
installer
- Linux: Use the appropriate package manager or download the
.deb
/.rpm
package
2. Verify Installation
Open a terminal/command prompt and run:
quarto --version
3. Install a Text Editor (Recommended)
While you can edit QMD files with any text editor, we recommend:
- VS Code with the Quarto extension
You can install the Quarto extension from within the Extensions tab in VS Code, from the Extension Marketplace, the Open VSX Registry or directly from a VISX extension file.
RStudio (built-in Quarto support)
Jupyter Lab (built-in Quarto support)
Key QMD Syntax for COLIB
See Quarto Basics
Basic Quarto Workflow
1. Clone the repository
git clone https://github.com/CRESYM/Colib_Quarto.github.io.git
cd colib_quarto
2. Create Your Contribution
- Download the appropriate template (model or test case)
- Open the
index.qmd
file in your preferred editor
3. Edit Your Content
Replace the content of the index.qmd
file with your own, following the guidelines in the template.
- See model template and test case template for more details.
4. Preview Your Work
To see how your page will look, run in your terminal:
quarto preview index.qmd
This opens a live preview in your browser that updates as you edit.
5. Render Final Output
To generate the final HTML file:
quarto render index.qmd
Submission Process
- Open a new issue through GitHub before starting your contribution.(create an issue)
- Prepare your contribution using the appropriate template (model/ test case) available in the repository
- Test your QMD file by rendering it locally
- Submit via GitHub to the same issue you created
- Compress your QMD file and related resources into a .zip archive, as GitHub does not support .qmd uploads directly
- Review process - our team will review your contribution
- Publication - approved contributions are merged and published
- Start with the template and modify incrementally
- Preview frequently to catch formatting issues early
- Use descriptive file names and organize your assets
- Follow the existing naming conventions in COLIB
- Include comprehensive references and citations
Thank you for contributing to COLIB and advancing open-source power system modeling!