Skip to content

Commit

Permalink
Merge pull request #36 from emotional-cities/docs-dev
Browse files Browse the repository at this point in the history
Configure automatic docs generation using docfx
  • Loading branch information
glopesdev authored Oct 5, 2023
2 parents 84b8247 + 010f87f commit 98b0c9d
Show file tree
Hide file tree
Showing 11 changed files with 516 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Builds and publishes the documentation website to gh-pages branch
name: Build docs

on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Build static site content using DocFX
- uses: nikeee/[email protected]
name: Build Documentation
with:
args: Docs/docfx.json

- name: Checkout gh-pages
uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
run: |
cd gh-pages
rm -rf *
touch .nojekyll
cp -a ../Docs/_site/. .
git config user.name github-actions
git config user.email [email protected]
git add .
git commit --reset-author --amend -m "Deploy docs website"
git push --force origin gh-pages
1 change: 1 addition & 0 deletions Docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_site
5 changes: 5 additions & 0 deletions Docs/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
###############
# temp file #
###############
*.yml
.manifest
5 changes: 5 additions & 0 deletions Docs/articles/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Getting Started
===============

1. Download [Bonsai](https://bonsai-rx.org/).
2. From the package manager, search and install the **Emotional Cities - Pluma** package.
2 changes: 2 additions & 0 deletions Docs/articles/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: Introduction
href: intro.md
73 changes: 73 additions & 0 deletions Docs/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"metadata": [
{
"src": [
{
"files": [
"EmotionalCities.Pluma/*.csproj"
],
"src": "../Interface"
}
],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false
}
],
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"logo.svg",
"favicon.ico",
"images/**"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default",
"templates/html"
],
"postProcessors": [ "ExtractSearchIndex" ],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false,
"xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}" ],
"xref": [
"https://bonsai-rx.org/docs/xrefmap.yml",
"https://harp-tech.org/docs/xrefmap.yml"
]
}
}
Binary file added Docs/favicon.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions Docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# **Emotional Cities - Pluma** Documentation

Bonsai Library for interfacing with the eMOTIONAL Cities wearable data acquisition board.

> [!Warning]
> These docs are under active development, feel free to contribute by either [raising an issue](https://github.com/emotional-cities/pluma/issues) or following the links to **Improve this Doc**.
This package was developed for the eMOTIONAL CITIES Project, which received funding from European Union’s Horizon 2020 research and innovation programme, under the grant agreement No 945307. The eMOTIONAL CITIES Project is a consortium of 12 partners co-coordinated by IGOT and FMUL, taking place between 2021 and 2025. More information at https://emotionalcities-h2020.eu/
362 changes: 362 additions & 0 deletions Docs/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Docs/templates/html/styles/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.affix {
height: auto;
}

.sideaffix {
overflow-x: hidden;
overflow-y: auto;
}

.affix > ul.level1 {
overflow: inherit;
}

.affix ul > li.active > ul,
.affix ul > li.active > a:before,
.affix ul > li > a:hover:before {
display: block;
white-space: inherit;
}
4 changes: 4 additions & 0 deletions Docs/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: Manual
href: articles/
- name: Reference
href: api/

0 comments on commit 98b0c9d

Please sign in to comment.