Skip to content

Commit c4e95b4

Browse files
authored
fix #12: add 'edit me' button (#15)
1 parent de8a6fe commit c4e95b4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,21 @@
6464
a:hover {
6565
text-decoration: underline;
6666
}
67+
68+
69+
.md-header__source {
70+
/* hide repo button */
71+
display: none;
72+
}
73+
74+
.md-content__button {
75+
opacity: 0.7;
76+
}
77+
78+
.md-content__button svg {
79+
fill: var(--md-accent-fg-color);
80+
}
81+
82+
.md-content__button:hover {
83+
opacity: 1;
84+
}

mkdocs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
site_name: Open Computing Facility
22
site_url: https://docs.ocf.berkeley.edu
3+
4+
repo_url: https://github.com/ocf/mkdocs
5+
repo_name: ocf/mkdocs
6+
edit_uri: edit/main/docs/
7+
38
theme:
49
name: material
510
logo: assets/penguin.svg
@@ -14,6 +19,8 @@ theme:
1419
- search.suggest
1520
- search.share
1621
- content.code.copy
22+
- content.action.edit
23+
- content.action.view
1724
font:
1825
text: Roboto
1926
code: Meslo

0 commit comments

Comments
 (0)