Skip to content

Add MkDocs Documentation with GitHub Actions Deployment #2832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Slyracoon23
Copy link

Description:

This PR introduces MkDocs integration to the LM Evaluation Harness repository, significantly enhancing documentation readability and accessibility. It provides:

  • MkDocs setup: Configured via mkdocs.yml with a structured navigation, Material theme, and enhanced user experience through syntax highlighting, copy-to-clipboard, and dark/light mode toggle.

  • GitHub Actions workflow: Automatically deploys documentation updates to GitHub Pages upon changes in the docs/ folder, mkdocs.yml, or the workflow file itself, ensuring docs stay up-to-date.

  • Comprehensive documentation: Clearly structured markdown files under docs/ to assist users and contributors, including:

    • Quick start instructions
    • CLI and Python API usage examples
    • Guides for extending the framework with new tasks, models, and APIs
  • API reference: Integration of autogenerated documentation using mkdocstrings, providing clear and detailed API docs for better developer experience.

Benefits:

  • Improved clarity and usability for new users and existing contributors.
  • Automated documentation deployment ensures continuous up-to-date docs.
  • Encourages community engagement through easier contribution and maintenance.

This aligns with the project's goals to facilitate research, benchmarking, and model evaluation.

- Introduced mkdocs.yml for site configuration and theme settings.
- Added deploy-docs.yml for GitHub Actions to automate documentation deployment.
- Created index.md as the main documentation page with installation and usage instructions.
- Added reference documentation for API models and Hugging Face vision-language models.
- Removed outdated README.md from docs directory.
Add MkDocs configuration and documentation files
- Upgrade checkout action to v4 for improved performance.
- Configure Git credentials for the GitHub Actions bot.
- Upgrade setup-python action to v5 and specify Python version 3.9.
- Implement caching for dependencies to optimize build times.
…trings versions

- Replace the installation of documentation dependencies with explicit versioning for mkdocs and mkdocstrings.
@CLAassistant
Copy link

CLAassistant commented Mar 23, 2025

CLA assistant check
All committers have signed the CLA.

@Slyracoon23
Copy link
Author

Hey @StellaAthena and @baberabb,
Just a heads up — the PR is awaiting your review as codeowners. Would appreciate it if you could take a look when you get a chance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants