Skip to content
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

doc: generating apidoc and userguide for TcLog #7

Merged
merged 4 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .Zeugwerk/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"fileversion": 1,
"solution": "TcLog.sln",
"projects": [
{
"name": "TcLogProj",
"plcs": [
{
"version": "0.2.2",
"name": "TcLog",
"type": "Library",
"frameworks": {},
"references": {},
"repositories": [],
"bindings": {},
"patches": {
"platform": {},
"argument": {}
}
}
]
}
]
}
26 changes: 26 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Documentation
on:
push:
branches:
- main
paths:
- 'documentation/**'
- 'TcLog/**'
pull_request:
workflow_dispatch:
jobs:
Build:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Build
uses: Zeugwerk/[email protected]
with:
username: ${{ secrets.ACTIONS_ZGWK_USERNAME }}
password: ${{ secrets.ACTIONS_ZGWK_PASSWORD }}
filepath: "."
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: archive/documentation/html
33 changes: 33 additions & 0 deletions documentation/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"build": {
"content": [
{
"files": [
"userguide/*.md",
"userguide/toc.yml",
"reference/**/*.md",
"reference/toc.yml",
"reference/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": ["images/**"]
}
],
"dest": "html",
"fileMetadataFiles": [],
"template": [
"statictoc", "template"
],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
}
25 changes: 25 additions & 0 deletions documentation/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# TcLog

<div align="center">
<h3 align="center">
TcLog
</h3>
</div>

Example Documentation

## Why ThisLicense
License Infos

## Install TcLog
How to install TcLog
<button onClick="location.href='userguide/installation.html'" type="button">Install TcLog.</button>

## Getting started
How to use, first hands on...
<button onClick="location.href='userguide/getStarted.html'" type="button">Get Started.</button>

## Documentation
The API reference of TcLog.

<button onClick="location.href='reference/TcLog/Constants.html'" type="button">Read the docs.</button>
5 changes: 5 additions & 0 deletions documentation/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_appTitle": "TcLog",
"_appFooter": "(c) 2023 Ben Geisler - Documentation powered by <a href=\"http://zeugwerk.at\">Zeugwerk GmbH</a>",
"_disableContribution": false
}
4 changes: 4 additions & 0 deletions documentation/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: User guide
href: userguide/
- name: API Reference
href: reference/
2 changes: 2 additions & 0 deletions documentation/userguide/example1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Example 1
tbd
2 changes: 2 additions & 0 deletions documentation/userguide/example2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Example 2
tbd
8 changes: 8 additions & 0 deletions documentation/userguide/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Getting started
tbd

## Installation
tbd

## PLC
tbd
2 changes: 2 additions & 0 deletions documentation/userguide/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License
tbd
2 changes: 2 additions & 0 deletions documentation/userguide/notices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Notices
tbd
12 changes: 12 additions & 0 deletions documentation/userguide/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: Installation
href: installation.md
- name: Examples
items:
- name: Example 1
href: example1.md
- name: Example 2
href: example2.md
- name: License
href: license.md
- name: Notices
href: notices.md