-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the option to tweak an otterwiki with a custom.css (and custom.js)
- The by default empty files static/custom/custom.css and custom.js are now loaded by the navigation.html template - Added an example of how to tweak the template.
- Loading branch information
Showing
7 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Customizing (tweaking) an Otter Wiki | ||
|
||
This is an example for tewaking the CSS of An Otter Wiki. | ||
|
||
Please check <https://otterwiki.com/Theme%20Customization> for | ||
more examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* This is an example custom.css that uses the serif font | ||
* Baskervville for the content rendered in the page. | ||
*/ | ||
|
||
@import url('https://fonts.googleapis.com/css2?family=Baskervville'); | ||
|
||
.content > .page { | ||
font-family: 'Baskervville', serif; | ||
font-weight: 400; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* | ||
* this javascript file is sourced but not used, since | ||
* we mount the entire directory a missing file would cause | ||
* http 404 not found errors. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
# | ||
# This docker-compose.yaml is for running the latest development version | ||
# | ||
version: '3' | ||
services: | ||
web: | ||
build: ../.. | ||
restart: unless-stopped | ||
ports: | ||
# forward the http port to 8080 | ||
- "8080:80" | ||
volumes: | ||
# mount the local custom.css | ||
- ./custom:/app/otterwiki/static/custom:ro | ||
# For this example we do not persist any data | ||
# - ./app-data:/app-data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* custom.css | ||
* | ||
* This file is loaded via the layout.html template in every | ||
* page of an Otter Wiki. | ||
* | ||
* see https://otterwiki.com/Customization for examples. | ||
* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* custom.js | ||
* | ||
* This file is loaded via the layout.html template in every | ||
* page of an Otter Wiki. | ||
* | ||
* see https://otterwiki.com/Customization for examples. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters