Skip to content

Commit

Permalink
Merge pull request #50 from rosalindfranklininstitute/adding-document…
Browse files Browse the repository at this point in the history
…ation-ab

Towards changes for documentation to be repository specific
  • Loading branch information
nitrosx authored Jul 26, 2024
2 parents ce5feac + b638170 commit 09946c0
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _site
.jekyll-cache
.jekyll-metadata
vendor
.env
37 changes: 20 additions & 17 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,30 @@ efforts:
link: https://github.com/SciCatProject/scitacean


resources:
- name: Official website (aka this one)
url: https://scicatproject.github.io
- name: Documentation
url: https://scicatproject.github.io/documentation
documentation:

- name: Official github project
description: All software packages that are part of the SciCat ecosystem are in the Github project. For documentation see each project.
url: https://github.com/ScicatProject
- name: pySciCat documentation
- name: User Guides
description: Experience SciCat as a user
url: https://scicatproject.github.io/documentation/
- name: Get Started
description: To get started with a standalone installation of SciCat and to know more about how to add it to your infrastructure visit the SciCat Live repository.
url: https://scicatproject.github.io/scicatlive/latest/
- name: Backend
description: For developer documentation on the SciCat backend.
url: https://github.com/ScicatProject/scicat-backend-next
- name: Frontend
description: For more information on the SciCat frontend and developer documentation.
url: https://github.com/ScicatProject/frontend
- name: pySciCat
description: The pyscicat project is a python client library to interact with the SciCat backend.
url: https://scicatproject.github.io/pyscicat/
- name: Scitacean documentation
- name: Scitacean
description: Scictacean is a high level python packaging for uploading and downloading data to and from SciCat.
url: https://scicatproject.github.io/scitacean/
- name: SciCat backend repository
url: https://github.com/ScicatProject/scicat-backend-next
- name: SciCat website repository
url: https://github.com/SciCatProject/scicatproject.github.io
- name: SciCat documentation repository
url: https://github.com/SciCatProject/documentation
- name: pySciCat repository
url: https://github.com/SciCatProject/pyscicat
- name: Scitacean repository
url: https://github.com/SciCatProject/scitacean



# Build settings
Expand Down
18 changes: 18 additions & 0 deletions _includes/documentation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<section id="documentation" class="effort text-center bg-light">
<div class="container">
<h1 class="mt-5 mb-5">Documentation</h1>
<div class="row">
{% for document in site.documentation %}
<div class="documentation"> <div class="documentation-name">
<div class="name">{{ document.name }}</div>
</div>
<div class="documentation-info">
<div class="text">{{ document.description }}</div>
<div class="text"><a href="{{ document.link }}" target="_blank">{{ document.link }}</a></div>
<a href="{{ document.url }}" target="_blank">{{ document.name }}</a>
</div>
{% endfor %}
</div>
</div>
</section>

2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<a class="page-scroll nav-link" id="nav-link-effort" href="{{'#effort' | relative_url }}" onclick="onClick(event);">Effort</a>
</li>
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link" id="nav-link-resources" href="{{'#resources' | relative_url }}" onclick="onClick(event);">Resources</a>
<a class="page-scroll nav-link" id="nav-link-documentation" href="{{'#documentation' | relative_url }}" onclick="onClick(event);">Documentation</a>
</li>
</div>
</nav>
13 changes: 0 additions & 13 deletions _includes/resources.html

This file was deleted.

2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% include breaker.html %}
{% include effort.html %}
{% include breaker.html %}
{% include resources.html %}
{% include documentation.html %}
{% include breaker.html %}
{% include footer.html %}
<script src="/assets/js/main.js"></script>
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ version: '3'
services:
serve:
image: jekyll/jekyll:latest
command: jekyll serve --watch --force_polling --verbose
command: jekyll serve --watch --force_polling --verbose --trace
ports:
- 4000:4000
- "4000:4000"
environment:
JEKYLL_UID: $JEKYLL_UID
JEKYLL_GID: $JEKYLL_GID
volumes:
- .:/srv/jekyll

0 comments on commit 09946c0

Please sign in to comment.