This directory contains the source files for the OSLC4Net documentation site, which is published to oslc4net.github.io.
docs/
├── docfx.json # DocFX configuration
├── index.md # Documentation home page
├── toc.yml # Top-level table of contents
├── articles/ # Documentation articles
│ ├── toc.yml
│ └── getting-started.md
├── images/ # Images and assets
├── template/ # Custom DocFX template
│ └── public/
│ └── main.js
└── .nojekyll # Prevents Jekyll processing on GitHub Pages
To build the documentation locally:
# Install DocFX (if not already installed)
dotnet tool install -g docfx
# Build the documentation
cd docs
docfx docfx.json
# Serve locally (with live reload)
docfx docfx.json --serveThe documentation will be available at http://localhost:8080
The documentation is automatically built and deployed when changes are pushed to the main branch:
- Build trigger: Changes to
docs/**,OSLC4Net_SDK/**/*.cs, orOSLC4Net_SDK/**/*.csproj - Workflow:
.github/workflows/docs.yml - Deployment: Built site is pushed to the oslc4net.github.io repository
- Requirements:
DOCS_DEPLOY_TOKENsecret must be configured with write access to oslc4net.github.io
- Create a new
.mdfile in thearticles/directory - Add an entry to
articles/toc.yml - Commit and push to trigger the build
API documentation is automatically generated from XML documentation comments in the source code. To improve API docs:
- Add XML documentation comments to public APIs in
OSLC4Net_SDK/ - Build will automatically include updated API reference
Clear the _site directory:
rm -rf docs/_site- Check the GitHub Actions workflow status
- Verify the
DOCS_DEPLOY_TOKENis valid and has write permissions - Check the oslc4net.github.io repository for the deployment commit