Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleanup for blog section * Some sbt config to generate blog post data * Blog index generation * Simplify blog listing * Remove blog from left navigation * Some cleanup * Site structure update to include to blog posts It is quite important to allow for easy blog contributions and the shared information that these entries can provide. As a result, the needed html structure changes have been added to allow for this section of the website to now be added and extended. Fixes #270
- Loading branch information
Showing
17 changed files
with
310 additions
and
82 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,3 @@ | ||
export SBT_OPTS="-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xss2M -Duser.timezone=GMT" | ||
|
||
use nix |
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
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
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
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
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,162 @@ | ||
$! | ||
Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> | ||
Copyright (c) 2017 Jonas Fonseca <jonas.fonseca@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. | ||
!$ | ||
<!DOCTYPE html> | ||
<html lang="$page.properties.("material.language"); null="en"$" class="no-js"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<meta name="description" content="$page.properties.("project.description")$"> | ||
<meta name="generator" content="Paradox, paradox-material-theme=$page.properties.("material.theme.version")$, mkdocs-material=2.2.2"> | ||
$partials/language()$ | ||
$ if (page.properties.("description")) $ | ||
<meta name="description" content="$page.properties.("description")$"> | ||
$ elseif (page.properties.("project.description")) $ | ||
<meta name="description" content="$page.properties.("project.description")$"> | ||
$ endif $ | ||
$ if (page.properties.("material.canonical.url")) $ | ||
<link rel="canonical" href="$page.properties.("material.canonical.url")$"> | ||
$ endif $ | ||
$ if (page.properties.("author")) $ | ||
<meta name="author" content="$page.properties.("author")$"> | ||
$ elseif (page.properties.("material.author")) $ | ||
<meta name="author" content="$page.properties.("site.author")$"> | ||
$ endif $ | ||
<link rel="shortcut icon" href="$page.base$$page.properties.("material.favicon")$"> | ||
$ if (page.properties.("title")) $ | ||
<title>$page.properties.("title")$</title> | ||
$ elseif (page.title) $ | ||
<title>$page.title$$ if (!page.home.active) $ · $page.home.title$$ endif $</title> | ||
$ else $ | ||
<title>$page.home.title$</title> | ||
$ endif $ | ||
<link rel="stylesheet" href="$page.base$assets/stylesheets/application.7a4cdee3.css"> | ||
$ if (page.properties.("material.color.primary")) $ | ||
<link rel="stylesheet" href="$page.base$assets/stylesheets/application-palette.792431c1.css"> | ||
$ endif $ | ||
<link rel="stylesheet" href="$page.base$lib/material__tabs/dist/mdc.tabs.min.css"> | ||
<link rel="stylesheet" href="$page.base$lib/prettify/prettify.css"> | ||
<script src="$page.base$lib/modernizr/modernizr.min.js"></script> | ||
$ if (page.properties.("material.font.text")) $ | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=$page.properties.("material.font.text.url")$:300,400,400i,700|$page.properties.("material.font.code.url")$"> | ||
<style> | ||
body,input{font-family:"$page.properties.("material.font.text")$","Helvetica Neue",Helvetica,Arial,sans-serif} | ||
code,kbd,pre{font-family:"$page.properties.("material.font.code")$","Courier New",Courier,monospace} | ||
</style> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
$ endif $ | ||
<link rel="stylesheet" href="$page.base$assets/stylesheets/paradox-material-theme.css"> | ||
$ if (page.properties.("material.custom.stylesheet")) $ | ||
<link rel="stylesheet" href="$page.base$$page.properties.("material.custom.stylesheet")$"> | ||
$ endif $ | ||
</head> | ||
<body | ||
$ if (page.properties.("material.color.primary")) $ | ||
data-md-color-primary="$page.properties.("material.color.primary")$" | ||
$ endif $ | ||
$ if (page.properties.("material.color.accent")) $ | ||
data-md-color-accent="$page.properties.("material.color.accent")$" | ||
$ endif $ | ||
> | ||
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="drawer"> | ||
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="search"> | ||
<label class="md-overlay" data-md-component="overlay" for="drawer"></label> | ||
$partials/header()$ | ||
<div class="md-container"> | ||
$ if (page.properties.("material.hero")) $ | ||
$partials/hero()$ | ||
$ endif $ | ||
<main class="md-main"> | ||
<div class="md-main__inner md-grid" data-md-component="container"> | ||
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation"> | ||
<div class="md-sidebar__scrollwrap"> | ||
<div class="md-sidebar__inner"> | ||
$partials/blog_nav()$ | ||
</div> | ||
</div> | ||
</div> | ||
$ if (page.subheaders) $ | ||
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc"> | ||
<div class="md-sidebar__scrollwrap"> | ||
<div class="md-sidebar__inner"> | ||
$partials/toc()$ | ||
</div> | ||
</div> | ||
</div> | ||
$ endif $ | ||
<div class="md-content"> | ||
<article class="md-content__inner md-typeset"> | ||
<div class="md-content__searchable"> | ||
$page.content$ | ||
</div> | ||
$ if (page.source_url) $ | ||
<div> | ||
<a href="$page.source_url$" title="Edit this page" class="md-source-file md-edit"> | ||
Edit this page | ||
</a> | ||
</div> | ||
$ endif $ | ||
<div class="print-only"> | ||
<span class="md-source-file md-version"> | ||
$page.properties.("project.version.short")$ | ||
</span> | ||
</div> | ||
</article> | ||
</div> | ||
</div> | ||
</main> | ||
$partials/footer()$ | ||
</div> | ||
<script src="$page.base$assets/javascripts/application.5165553b.js"></script> | ||
<script src="$page.base$assets/javascripts/paradox-material-theme.js"></script> | ||
$! | ||
The ending "." enables search to work without providing the site URL, since the | ||
theme JavaScript fetches the index by concatenating the base URL to an absolute | ||
path: "/search/search_index.json". | ||
It originally was "./" but this breaks previewSite because it leads to a double | ||
slash when fetching the index, i.e. ".//search/...". To complete the workaround | ||
all locations in the search index now start with a "/" so the JavaScript can | ||
safely do: `url.base + doc.location`. | ||
!$ | ||
<script>app.initialize({version:"0.17",url:{base:"$page.base$."}})</script> | ||
<script type="text/javascript" src="$page.base$lib/prettify/prettify.js"></script> | ||
<script type="text/javascript" src="$page.base$lib/prettify/lang-scala.js"></script> | ||
<script type="text/javascript"> | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
window.prettyPrint && prettyPrint(); | ||
}); | ||
</script> | ||
$ if (page.properties.("material.custom.javascript")) $ | ||
<script src="$page.base$$page.properties.("material.custom.javascript")$"></script> | ||
$ endif $ | ||
$ if (page.properties.("material.google.analytics")) $ | ||
$partials/integrations/analytics()$ | ||
$ endif $ | ||
</body> | ||
</html> |
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,55 @@ | ||
$! | ||
Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> | ||
Copyright (c) 2017 Jonas Fonseca <jonas.fonseca@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. | ||
!$ | ||
<nav class="md-nav md-nav--primary" data-md-level="0" style="visibility: hidden"> | ||
<label class="md-nav__link" style="padding-left: 12px; margin-top: 0"> | ||
<a href="$page.base$index.html" title="CIlib"> | ||
CIlib | ||
</a> | ||
</label> | ||
<label class="md-nav__title md-nav__title--site" for="drawer" style="margin-top: 8.75px"> | ||
<span class="md-nav__button md-logo"> | ||
$ if (page.properties.("material.logo.icon")) $ | ||
<i class="md-icon">$page.properties.("material.logo.icon")$</i> | ||
$ else $ | ||
<img src="$page.base$$page.properties.("material.logo")$" width="24" height="24"> | ||
$endif$ | ||
</span> | ||
<a href="$page.home.href$" title="$page.home.title$"> | ||
$page.home.title$ | ||
</a> | ||
</label> | ||
$ if (page.properties.("material.repo")) $ | ||
<div class="md-nav__source"> | ||
$source()$ | ||
</div> | ||
$ endif $ | ||
<label class="md-nav__link" style="padding-left: 12px; padding-bottom: 14px"> | ||
<a href="$page.base$api/cilib" target="_blank">API</a> | ||
</label> | ||
$page.groups$ | ||
$page.navigation$ | ||
$toc()$ | ||
<div class="md-nav__title--site md-version" title="Version"> | ||
<i class="md-icon">label_outline</i> $page.properties.("project.version.short")$ | ||
</div> | ||
</nav> |
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,55 @@ | ||
$! | ||
Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com> | ||
Copyright (c) 2017 Jonas Fonseca <jonas.fonseca@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. | ||
!$ | ||
<nav class="md-nav md-nav--primary" data-md-level="0" style="visibility: hidden"> | ||
<label class="md-nav__title md-nav__title--site" for="drawer"> | ||
<span class="md-nav__button md-logo"> | ||
$ if (page.properties.("material.logo.icon")) $ | ||
<i class="md-icon">$page.properties.("material.logo.icon")$</i> | ||
$ else $ | ||
<img src="$page.base$$page.properties.("material.logo")$" width="24" height="24"> | ||
$endif$ | ||
</span> | ||
<a href="$page.home.href$" title="$page.home.title$"> | ||
$page.home.title$ | ||
</a> | ||
</label> | ||
$ if (page.properties.("material.repo")) $ | ||
<div class="md-nav__source"> | ||
$source()$ | ||
</div> | ||
$ endif $ | ||
<label class="md-nav__link" style="padding-left: 12px"> | ||
<a href="$page.base$blog/index.html" title="Blog"> | ||
Blog | ||
</a> | ||
</label> | ||
<label class="md-nav__link" style="padding-left: 12px; padding-bottom: 14px"> | ||
<a href="$page.base$api/cilib" target="_blank">API</a> | ||
</label> | ||
$page.groups$ | ||
$page.navigation$ | ||
$toc()$ | ||
<div class="md-nav__title--site md-version" title="Version"> | ||
<i class="md-icon">label_outline</i> $page.properties.("project.version.short")$ | ||
</div> | ||
</nav> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.