Skip to content

Commit

Permalink
Set md-nav to correct color in slate
Browse files Browse the repository at this point in the history
  • Loading branch information
ibro45 committed Oct 14, 2023
1 parent 00d66b6 commit 1af9ed1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 5 additions & 2 deletions docs/assets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
color: #14181e;
}

[data-md-color-scheme="slate"] {
[data-md-color-scheme="slate"] {
--md-primary-fg-color: #459AA3;
--md-accent-fg-color: #459AA3;
--md-default-bg-color: #14181e;
}
}
[data-md-color-scheme="slate"] .md-nav {
--md-typeset-a-color: #459AA3;
}

@media only screen and (min-width: 75.25em) {
.md-main__inner {
Expand Down
11 changes: 5 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ hide:

<!-- pip install -->
<div style="width:70%; margin:auto; text-align:center">
</br>

```bash
pip install project-lighter
Expand All @@ -24,21 +25,18 @@ pip install project-lighter

Say goodbye to messy scripts and notebooks. Lighter is here to help you organize your experiments and make them reproducible.


## Demo

Here is a comparison between a PyTorch Lightning script and its Lighter equivalent.

Lighter is:
## Features

1. **Structured** - the pre-defined structure ensures that your experiments are standardized, organized, and reproducible.
2. **Boilerplate-free** - forget about writing training logic over and over. `LighterSystem` handles it for you and is compatible with any task, from classification to self-supervised learning.
3. **Readable** - wondering what learning rate or architecture was used? Just glance at the config.
4. **Easily modifiable** - override parameters from CLI or using another config. Leave `argparse` and hardcoding in the past.

## Comparison

<div style="display: flex; justify-content: space-between">
<div style="width: 49%;">
<h3 style="text-align: center">PyTorch Lightning</h3>
```bash title="Terminal"
python cifar10.py
```
Expand Down Expand Up @@ -99,6 +97,7 @@ Lighter is:
</div>

<div style="width: 49%;">
<h3 style="text-align: center">Lighter</h3>
```bash title="Terminal"
lighter fit --config_file cifar10.yaml
```
Expand Down
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ plugins:
- mkdocstrings

nav:
- 'index.md'
- Home:
- 'Lighter': 'index.md'
- 'Basics':
- '5 Minute Example': 'basics/5-minute-example.md'
- 'Config': 'basics/config.md'
Expand Down

0 comments on commit 1af9ed1

Please sign in to comment.