Skip to content

Commit

Permalink
Reformat some docs pages to render correctly (#379)
Browse files Browse the repository at this point in the history
Reformatting of documentation to render on mkdocs material theme
  • Loading branch information
matentzn authored Aug 6, 2024
1 parent 32ae8c8 commit b1530c8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
26 changes: 17 additions & 9 deletions src/docs/create-mapping-commons.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Getting started
## Getting started

- First, create a virtual environment of your choice (anaconda, venv, pyenv, poetry etc.). If you need assistance with virtual environments, [here's a guide](https://berkeleybop.github.io/best_practice/python_environments) to help you setup pyenv and use poetry with it.
- Install the [cruft](https://github.com/cruft/cruft) package. Cruft enables keeping projects up-to-date with future updates made to this original template.

```
pip install cruft
```
- Create a project using the [mapping-commons-cookiecutter](https://github.com/mapping-commons/mapping-commons-cookiecutter) template.
```
cruft create https://github.com/mapping-commons/mapping-commons-cookiecutter
```
This kickstarts an interactive session where you declare the following:
- `project_name`: Name of the project. [defaults to: my-commons-name]
- `github_org`: Name of the github org the project belongs to. [defaults to: my-org]
- `project_description`: Description of the project [defaults to: 'This is the project description.']
Expand All @@ -20,13 +23,14 @@ This kickstarts an interactive session where you declare the following:
- `yo`: Choose from [1]: Yes, [2]: No [**TEST OPTION FOR NOW**]
- `license`: Choose from [1]: Yes, [2]: No [**TEST OPTION FOR NOW**]
# What does this do?
## What does this do?
The following files and directories are autogenerated in the project:
# TODO
# Version control
## GitHub
### TODO
## Version control
### GitHub
1. Go to [https://github.com/new] and follow the instructions, being sure to
NOT add a README or .gitignore file (this cookiecutter template will take
Expand All @@ -40,27 +44,31 @@ The following files and directories are autogenerated in the project:
git push -u origin main
```

## GitLab
### GitLab

### TODO
#### TODO

# Future updates to the project's boilerplate code
## Future updates to the project's boilerplate code

In order to be up-to-date with the template, first check if there is a mismatch between the project's boilerplate code and the template by running:

```
cruft check
```

This indicates if there is a difference between the current project's boilerplate code and the latest version of the project template. If the project is up-to-date with the template:

```
SUCCESS: Good work! Project's cruft is up to date and as clean as possible :).
```

Otherwise, it will indicate that the project's boilerplate code is not up-to-date by the following:

```
FAILURE: Project's cruft is out of date! Run `cruft update` to clean this mess up.
```


For viewing the difference, run `cruft diff`. This shows the difference between the project's boilerplate code and the template's latest version.

After running `cruft update`, the project's boilerplate code will be updated to the latest version of the template.
After running `cruft update`, the project's boilerplate code will be updated to the latest version of the template.
12 changes: 6 additions & 6 deletions src/docs/related-documentation.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Related documentation

- [SSSOM Toolkit](https://mapping-commons.github.io/sssom-py/index.html#)
- [SSSOM Java](https://incenp.org/dvlpt/sssom-java/)
- Semantic Mapping Vocabulary (SEMAPV): "https://mapping-commons.github.io/semantic-mapping-vocabulary/"
- LinkML: "https://linkml.io/linkml/"
- OBO Academy: "https://oboacademy.github.io/obook/"
- Monarch Initiative: "https://monarch-initiative.github.io/monarch-documentation/"
- [SSSOM Toolkit](https://mapping-commons.github.io/sssom-py/index.html#): A toolkit and library for processing SSSOM files in Python
- [SSSOM Java](https://incenp.org/dvlpt/sssom-java/): A toolkit and library for processing SSSOM files in Java
- [Semantic Mapping Vocabulary (SEMAPV)](https://mapping-commons.github.io/semantic-mapping-vocabulary/): The mapping vocabulary used for mapping justifications and specialised mapping predicates
- [LinkML](https://linkml.io/linkml/): The modelling framework used by SSSOM
- [OBO Academy](https://oboacademy.github.io/obook/): Ontology and mapping related training materials
- [Monarch Initiative](https://monarch-initiative.github.io/monarch-documentation/): Knowledge Graph related products supported by the Monarch Initiatives, including many tools using and producing SSSOM

0 comments on commit b1530c8

Please sign in to comment.