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 or update DocFX
dotnet tool update -g docfx
# Build the SDK first so domain source generators refresh OSLC4Net.Domains.*/Generated
cd OSLC4Net_SDK
dotnet build -c Release OSLC4Net.Core.slnx
# Build the documentation from project metadata
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 generated from project metadata. Domain projects also commit their source-generator output under OSLC4Net.Domains.*/Generated, so build the SDK before running DocFX when vocabulary or shape RDF changes. To improve API docs:
- Add XML documentation comments to public APIs in
OSLC4Net_SDK/ - For generated domain vocabulary members, update the RDF
dcterms:descriptionorrdfs:comment - Build the SDK before running DocFX so the generated source snapshot is current
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