Skip to content

Commit

Permalink
feat: docs: Edit on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinston committed Jul 19, 2023
1 parent 49df9fe commit 9b78f76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- main
paths:
- 'docs/**'
- 'mkdocs_overrides/**'
- 'mkdocs.yml'
- '.github/workflows/mkdocs.yml'
jobs:
Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ site_name: nmdc-runtime docs
site_description: Documentation for the National Microbiome Data Collaborative (NMDC) Runtime System and API
site_url: https://microbiomedata.github.io/nmdc-runtime/
repo_url: https://github.com/microbiomedata/nmdc-runtime/
edit_uri_template: 'blob/main/docs/{path}'
nav:
- index.md
- Tutorials:
Expand Down Expand Up @@ -29,6 +30,7 @@ nav:

theme:
name: material
custom_dir: mkdocs_overrides
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
Expand Down
9 changes: 9 additions & 0 deletions mkdocs_overrides/partials/source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<a href="{{ page.edit_url }}" title="{{ lang.t('source') }}" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
{% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</div>
<div class="md-source__repository">
Edit on {{ config.repo_name }}
</div>
</a>

0 comments on commit 9b78f76

Please sign in to comment.