-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from BIG-MAP/cwa/close-73-reactivate-docs
Test building docs in PRs
- Loading branch information
Showing
16 changed files
with
49 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,34 +4,36 @@ on: | |
push: | ||
branches: | ||
- 'master' | ||
|
||
pull_request: | ||
|
||
env: | ||
GIT_USER_NAME: BattINFO Developers | ||
GIT_USER_EMAIL: "[email protected]" | ||
|
||
jobs: | ||
|
||
updatepages: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 #Uses python install action from here: https://github.com/marketplace?type=actions | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' # Replace with the desired Python version | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install Markdown==3.4.3 rdflib==6.3.2 # Add any other dependencies if needed | ||
pip install -U setuptools wheel | ||
pip install -r requirements_docs.txt | ||
- name: Render documentation from ttl | ||
run: python sphinx/ttl_to_rst.py | ||
|
||
|
@@ -40,17 +42,19 @@ jobs: | |
with: | ||
docs-folder: "sphinx/" | ||
pre-build-command: "apt-get update -y; apt-get install -y pandoc" | ||
|
||
|
||
# Still upload built documentation as an artifact if not deploying | ||
# This is to provide the opportunity to download the built documentation | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: documentationHTML | ||
path: sphinx/_build/html/ | ||
|
||
|
||
# Only deploy if pushing to 'master' | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/master' | ||
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: sphinx/_build/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Python | ||
__pycache__ | ||
*.py[cod] | ||
|
||
# Documentation | ||
site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
# Contributing to BattINFO | ||
|
||
There are two ways you can contribute to BattINFO. | ||
### Suggest minor changes on existing elements | ||
Create a [Feature request in a Github Issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue) to suggest edits to names, defintions, references on existing classes and properties. | ||
### Propose additions/deletion of elements | ||
|
||
## Suggest minor changes on existing elements | ||
|
||
Create a [Feature request in a Github Issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue) to suggest edits to names, defintions, references on existing classes and properties. | ||
|
||
## Propose additions/deletion of elements | ||
|
||
> **_NOTE:_** We recommend contacting some of BattINFO contributors in advance to discuss which additions deletions you wish to make. | ||
We recoommend using the [forking workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow) to contribute additions/deletions. Fork this repository, clone the fork on you local PC, create your branch based on the existing ```dev``` branch (e.g. ```dev_john_doe```) and work on the editions in you local copy. You can edit ontologes in two main ways. One is programmatically, using for instance [EMMOntoPy](https://github.com/emmo-repo/EMMOntoPy). The second and more common is using the interface provided by the Protege software. In case of the latter, [install Protege](https://protege.stanford.edu/) and use it to open the ontology file you wish to edit. Before adding elements, ensure Protege is configured to create IRIs in the right format: | ||
|
||
* Open Protégé | ||
* Go to File/Open and load the ontology file you wish to modify | ||
* Go to File/Preferences and there go to the New Entities Tab | ||
* Ensure you have configured the preferences with the correct IRI prefixes. | ||
|
||
* Once you have made your changes, commit them to your fork and [create a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). | ||
* We will merge the request after assessing it. | ||
* We will merge the request after assessing it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
# BattINFO | ||
|
||
| [**About**](./about.html) | [**Contribute**](./contribute.html) | [![BattINFO Github](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/BIG-MAP/BattINFO) | ||
|
||
|
||
The **Batt**ery **IN**ter**F**ace **O**ntology is a digital resource to support interoperability of battery data. | ||
The **Batt**ery **IN**ter**F**ace **O**ntology is a digital resource to support interoperability of battery data. | ||
|
||
BattINFO consists of a list of entities representing concepts used in batteries and electrochemistry. Each entity has a unique identifier (IRI) and is annotated with additional information, such as its preferred name ("prefLabel"), alternative names, definition, references, etc. As users link their research resources to BattINFO entities, they are effectively describing their resource using a common vocabulary. Resources can be datasets, documents, persons, organizations, equipment, samples... anything linked to the common vocabulary described in BattINFO, becomes part of an ecosystem of Findable resources. | ||
|
||
Here you can find the entities described in BattINFO, classified in two domains. | ||
|
||
|
||
[**Battery Domain**](http://emmo.info/battery) | [**Electrochemistry Domain**](http://emmo.info/electrochemistry) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
EMMOntoPy>=0.1.3,<1 | ||
semver>=2.13.0,<3 | ||
EMMOntoPy>=0.7.1,<1 | ||
semver>=3.0.2,<4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rdflib==6.3.2 |