Skip to content

Commit

Permalink
Polish up documentation CSS and font
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Jan 31, 2025
1 parent a3a1fc1 commit ce2705a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 10 deletions.
4 changes: 3 additions & 1 deletion docs/_sass/color_schemes/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ $red-200: #e94c4c !default;
$red-300: #dd2e2e !default;

$body-font-family:
"Overpass",
"Source Sans 3",
system-ui,
-apple-system,
sans-serif;

$mono-font-family: consolas, monospace;
2 changes: 1 addition & 1 deletion docs/_sass/color_schemes/custom_dark.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "./variables";
@import "../highlight/native.scss";
@import url("https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

$new-body-background-color: #292929;

Expand Down
13 changes: 13 additions & 0 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@
.nav-list .nav-list-expander {
display: none !important;
}

:not(pre, figure) code {
padding: 0.2rem 0.35rem !important;
font-size: 0.85em;
}

table {
border-collapse: collapse;

th {
border-bottom-width: 2px;
}
}
9 changes: 5 additions & 4 deletions docs/_sass/highlight/native.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Based on https://github.com/dwayne/sass-pygments/blob/master/styles/scss/native.scss

.highlight,
pre.highlight {
pre.highlight,
.highlight code {
color: #d0d0d0;
background: #202020;

.hll {
background-color: #404040;
}

color: #d0d0d0;
background: #202020;

.c {
color: #999999;
font-style: italic;
Expand Down
6 changes: 3 additions & 3 deletions docs/supported_languages_and_lockfiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ nav_order: 2

Artifact and manifest extraction logic is implemented in [OSV-Scalibr](https://github.com/google/osv-scalibr) as a standalone library. OSV-Scanner tightly integrates with OSV-Scalibr to provide a end to end vulnerability scanner for developers.

### Core Concept
## Core Concept

We split the files we can scan into two broad categories, **artifacts** and **manifests**.

Expand Down Expand Up @@ -105,7 +105,7 @@ If you have a custom lockfile that we do not support or prefer to do your own cu

Once you extracted your own dependency information, place it in a `osv-scanner.json` file, with the same format as the JSON output of osv-scanner, e.g.:

```
```jsonc
{
"results": [
{
Expand All @@ -122,7 +122,7 @@ Once you extracted your own dependency information, place it in a `osv-scanner.j
"version": "1.2.3",
"ecosystem": "npm"
}
},
}
// ...
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This documentation is for the beta V2 release. For the older, V1 release documen
{:toc}
</details>

### Core Concepts
## Core Concept

OSV-Scanner operates in a two-step process:

Expand Down

0 comments on commit ce2705a

Please sign in to comment.