Skip to content

Commit

Permalink
Figure is responsive to light/dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 29, 2023
1 parent 84efb3b commit 5d83f98
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
15 changes: 13 additions & 2 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ sidebar_position: 2

# Contributor's Guide

## Architecture
Reading this page provides background knowledge and will point you in the right direction
for getting started on hacking at _ChRIS_'s codebases.


:::danger

Page is WIP.

:::

## Backend Architecture

As a distributed, "hybrid cloud" application, the backend architecture of _ChRIS_ is complex.

Expand All @@ -14,7 +24,8 @@ CUBE access to a specific compute resource. _pfcon_ speaks to _pman_, which is a
[shim](https://en.wikipedia.org/wiki/Shim_(computing)) that translates a job request from _CUBE_
to a call to the compute resource cluster.

![Architecture Diagram](/img/figures/ChRIS_architecture.svg)
![Architecture Diagram (light theme)](/img/figures/ChRIS_architecture.svg#gh-light-mode-only)
![Architecture Diagram (dark theme)](/img/figures/ChRIS_architecture_dark.svg#gh-dark-mode-only)

## Values and Goals

Expand Down
6 changes: 6 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ h6 {
.container-of-same-height-cards .card {
height: 100%;
}

/* https://docusaurus.io/docs/markdown-features/assets#github-style-themed-images */
[data-theme='light'] img[src$='#gh-dark-mode-only'],
[data-theme='dark'] img[src$='#gh-light-mode-only'] {
display: none;
}
2 changes: 1 addition & 1 deletion static/img/figures/ChRIS_architecture_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d83f98

Please sign in to comment.