Compare commits

...
17 Commits
Author SHA1 Message Date
squidfunk 57f51f3a3d Prepare 0.2.4 release 2016-06-26 14:16:59 +02:00
squidfunk fc6b086db4 Fixed #35: Add styling for blockquotes 2016-06-26 14:10:13 +02:00
squidfunk 2784a4f781 Fixed #33: Protocol relative URL for webfonts doesn't work with file:// 2016-06-26 13:50:24 +02:00
squidfunk 62dc4c111e Fixed #34: IE11 on Windows 7 doesn't honor max-width on main tag 2016-06-26 13:45:14 +02:00
squidfunk 1a4490a39c Default favicon not properly set 2016-06-24 13:12:20 +02:00
squidfunk a1a896e1bb Prepare 0.2.3 release 2016-05-16 16:48:11 +02:00
squidfunk e30b60b1e6 Fixed #26: Better highlighting for keystrokes 2016-05-16 16:32:29 +02:00
squidfunk 016b1a227d Fixed #30: Suboptimal syntax highlighting for PHP 2016-05-11 18:43:02 +02:00
squidfunk 0f5c43df0c Fixed #25: Highlight inline fenced blocks 2016-05-11 18:31:15 +02:00
squidfunk 25a102f2b4 Update version 2016-03-20 20:07:38 +01:00
squidfunk 8f09451c13 Prepare 0.2.2 release 2016-03-20 19:59:25 +01:00
squidfunk eade56c912 Fixed #20: Fix rounded borders for tables 2016-03-17 17:53:02 +01:00
squidfunk 8ab2e5eb2a Fixed #15: Document pygments dependency for codehilite 2016-03-17 17:15:11 +01:00
squidfunk d58834222d Put version number in own container 2016-03-17 16:51:20 +01:00
Martin Donath f934776af6 Merge pull request #17 from sebastian-marinescu/patch-1
Update drawer.html // Styling version number
2016-03-17 16:40:55 +01:00
Sebastian G. Marinescu d2e2764bd6 Update drawer.html
Separate version-number into span so styling it via CSS is possible
2016-03-15 10:08:57 +01:00
squidfunk aedddcbc39 Fixed #16: Favicon could not be set through mkdocs.yml 2016-03-14 21:20:51 +01:00
20 changed files with 127 additions and 45 deletions
+20
View File
@@ -1,3 +1,23 @@
mkdocs-material-0.2.4 (2016-06-26)
* Fixed improperly set set default favicon
* Fixed #33: Protocol relative URL for webfonts doesn't work with file://
* Fixed #34: IE11 on Windows 7 doesn't honor max-width on main tag
* Fixed #35: Add styling for blockquotes
mkdocs-material-0.2.3 (2016-05-16)
* Fixed #25: Highlight inline fenced blocks
* Fixed #26: Better highlighting for keystrokes
* Fixed #30: Suboptimal syntax highlighting for PHP
mkdocs-material-0.2.2 (2016-03-20)
* Fixed #15: Document pygments dependency for codehilite
* Fixed #16: Favicon could not be set through mkdocs.yml
* Fixed #17: Put version into own container for styling
* Fixed #20: Fix rounded borders for tables
mkdocs-material-0.2.1 (2016-03-12)
* Fixed #10: Invisible header after closing search bar with ESC key
-3
View File
@@ -1,7 +1,6 @@
# Material
[![Travis CI][travis-image]][travis-link]
[![PyPI Downloads][pypi-dl-image]][pypi-dl-link]
[![PyPI Version][pypi-v-image]][pypi-v-link]
A material design theme for [MkDocs](http://www.mkdocs.org).
@@ -51,7 +50,5 @@ IN THE SOFTWARE.
[travis-image]: https://travis-ci.org/squidfunk/mkdocs-material.svg
[travis-link]: https://travis-ci.org/squidfunk/mkdocs-material
[pypi-dl-image]: https://img.shields.io/pypi/dm/mkdocs-material.png
[pypi-dl-link]: https://pypi.python.org/pypi/mkdocs-material
[pypi-v-image]: https://img.shields.io/pypi/v/mkdocs-material.png
[pypi-v-link]: https://pypi.python.org/pypi/mkdocs-material
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
"version": "0.2.1",
"version": "0.2.4",
"description": "A material design theme for MkDocs",
"homepage": "http://squidfunk.github.io/mkdocs-material/",
"authors": [
+7 -5
View File
@@ -205,8 +205,9 @@ have to switch them on explicitly.
### CodeHilite (recommended)
This extensions adds code highlighting to fenced code blocks. It might not be
the best code highlighter, but it works without JavaScript and on the server:
This extensions uses [Pygments][] (install with `pip install pygments`) to add
code highlighting to fenced code blocks. It might not be the best code
highlighter, but it works without JavaScript and on the server:
``` yaml
markdown_extensions:
@@ -220,12 +221,12 @@ further instructions
### Permalinks
In order to add [permalinks][] to the headers of your article, set the
`markdown_extensions.toc.permalink` variable to a symbol, e.g. ``:
`markdown_extensions.toc.permalink` variable to a symbol, e.g. `#`:
``` yaml
markdown_extensions:
- toc:
permalink: ''
permalink: '#'
```
The symbol can be chosen freely, it can even be a WebFont icon.
@@ -317,7 +318,7 @@ markdown_extensions:
- codehilite(css_class=code)
- admonition
- toc:
permalink: ''
permalink: '#'
```
[MkDocs]: http://www.mkdocs.org
@@ -326,6 +327,7 @@ markdown_extensions:
[Google Fonts]: https://www.google.com/fonts
[Roboto font]: https://www.google.com/fonts/specimen/Roboto
[Markdown extensions]: http://www.mkdocs.org/user-guide/writing-your-docs/#markdown-extensions
[Pygments]: http://pygments.org
[highlight.js]: https://highlightjs.org
[extra]: http://www.mkdocs.org/user-guide/styling-your-docs/#customising-a-theme
[permalinks]: https://en.wikipedia.org/wiki/Permalink
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6 -6
View File
@@ -34,9 +34,9 @@
{% if config.extra.logo %}
<link rel="apple-touch-icon" href="{{ base_url }}/{{ config.extra.logo }}">
{% endif %}
{% set icon = icon | default("assets/images/favicon-e565ddfa3b.ico") %}
<link rel="shortcut icon" type="image/x-icon" href="{{ base_url }}/{{ icon }}">
<link rel="icon" type="image/x-icon" href="{{ base_url }}/{{ icon }}">
{% set favicon = favicon | default("assets/images/favicon-e565ddfa3b.ico", true) %}
<link rel="shortcut icon" type="image/x-icon" href="{{ base_url }}/{{ favicon }}">
<link rel="icon" type="image/x-icon" href="{{ base_url }}/{{ favicon }}">
<style>
@font-face {
font-family: 'Icon';
@@ -53,7 +53,7 @@
font-style: normal;
}
</style>
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-20d5debb47.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-a422ff04cc.css">
{% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/palettes-05ab2406df.css">
{% endif %}
@@ -61,7 +61,7 @@
{% set text = config.extra.get("font", {}).text | default("Ubuntu") %}
{% set code = config.extra.get("font", {}).code | default("Ubuntu Mono") %}
{% set font = text + ':400,700|' + code | replace(' ', '+') %}
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{ font }}">
<style>
body, input {
font-family: '{{ text }}', Helvetica, Arial, sans-serif;
@@ -151,7 +151,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
m.parentNode.insertBefore(a,m)
})(window, document,
'script', '//www.google-analytics.com/analytics.js', 'ga');
'script', 'https://www.google-analytics.com/analytics.js', 'ga');
/* General initialization */
ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
ga('set', 'anonymizeIp', true);
+6 -1
View File
@@ -8,7 +8,12 @@
</div>
{% endif %}
<div class="name">
<strong>{{ site_name }} {{ config.extra.version }}</strong>
<strong>
{{ site_name }}
<span class="version">
{{ config.extra.version }}
</span>
</strong>
{% if repo_id %}
<br>
{{ repo_id }}
+1 -1
View File
@@ -2,6 +2,6 @@
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
"assets/javascripts/application.js": "assets/javascripts/application-997097ee0c.js",
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js",
"assets/stylesheets/application.css": "assets/stylesheets/application-20d5debb47.css",
"assets/stylesheets/application.css": "assets/stylesheets/application-a422ff04cc.css",
"assets/stylesheets/palettes.css": "assets/stylesheets/palettes-05ab2406df.css"
}
+1 -1
View File
@@ -36,7 +36,7 @@ theme_dir: material
# Options
extra:
version: 0.2.1
version: 0.2.4
logo: images/logo.png
author:
github: squidfunk
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
"version": "0.2.1",
"version": "0.2.4",
"description": "A material design theme for MkDocs",
"homepage": "http://squidfunk.github.io/mkdocs-material/",
"authors": [
+1 -1
View File
@@ -23,7 +23,7 @@ from setuptools import setup, find_packages
# Package description
setup(
name = 'mkdocs-material',
version = '0.2.1',
version = '0.2.4',
url = 'http://squidfunk.github.io/mkdocs-material/',
license = 'MIT',
description = 'A material design theme for MkDocs',
+15 -1
View File
@@ -55,10 +55,24 @@ pre {
/*
* Types and functions
*/
.kt, .kd, .n.f {
.kt, .kd {
color: #0086B3;
}
/*
* Function definition
*/
.nf, .n.f {
color: #795da3;
}
/*
* Classes
*/
.nx {
color: #0086b3;
}
/*
* Strings
*/
+8
View File
@@ -72,6 +72,14 @@ time, mark, audio, video {
border: 0;
}
/*
* Enforce correct rendering of main element - missing in user agent stylesheet
* of IE11 on Windows 7.
*/
main {
display: block;
}
/*
* Reset list styles
*/
@@ -46,10 +46,29 @@
/*
* Headlines, chapters, links and inline code
*/
h1, h2, a, code {
h1, h2, a {
color: $primary;
}
/*
* Inline code
*/
code {
background: #eee;
}
/*
* Keyboard tags
*/
kbd {
color: #555;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
/*
* Lower border for main headline
*/
@@ -93,20 +112,6 @@
th {
background: mix($primary, $white, 75%);
color: $white;
/*
* Round upper left border
*/
&:first-child {
border-top-left-radius: 3px;
}
/*
* Round upper right border
*/
&:last-child {
border-top-right-radius: 3px;
}
}
/*
@@ -116,6 +121,14 @@
border-top: 1px solid rgba($black, 0.05);
}
}
/*
* Blockquote styles
*/
blockquote {
border-left: 2px solid $black-light;
color: $black-light;
}
}
/*
@@ -190,6 +190,16 @@
*/
p > code {
white-space: nowrap;
padding: 2px 4px;
}
/*
* Keyboard tags
*/
kbd {
display: inline-block;
padding: 3px 5px;
line-height: 10px;
}
/*
@@ -223,6 +233,7 @@
table {
margin: 3.0em 0 1.5em;
font-size: 13px;
overflow: hidden;
/*
* The semi-cool solution, in case javascript is not available
@@ -254,6 +265,13 @@
}
}
/*
* Blockquote styles
*/
blockquote {
padding-left: 16px;
}
/*
* Data table wrapper, in case javascript is available
*/
@@ -46,7 +46,7 @@ body, input {
/*
* Proportional fonts
*/
pre, code {
pre, code, kbd {
font-family: 'Courier New', 'Courier', monospace;
/*
+5 -5
View File
@@ -58,11 +58,11 @@
{% endif %}
<!-- Favicon -->
{% set icon = icon | default("assets/images/favicon.ico") %}
{% set favicon = favicon | default("assets/images/favicon.ico", true) %}
<link rel="shortcut icon" type="image/x-icon"
href="{{ base_url }}/{{ icon }}" />
href="{{ base_url }}/{{ favicon }}" />
<link rel="icon" type="image/x-icon"
href="{{ base_url }}/{{ icon }}" />
href="{{ base_url }}/{{ favicon }}" />
<!-- Configure icons (placed here to omit issues with subdirectories) -->
<style>
@@ -98,7 +98,7 @@
{% set code = config.extra.get("font", {}).code | default("Ubuntu Mono") %}
{% set font = text + ':400,700|' + code | replace(' ', '+') %}
<link rel="stylesheet" type="text/css"
href="//fonts.googleapis.com/css?family={{ font }}" />
href="https://fonts.googleapis.com/css?family={{ font }}" />
<style>
body, input {
font-family: '{{ text }}', Helvetica, Arial, sans-serif;
@@ -241,7 +241,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
m.parentNode.insertBefore(a,m)
})(window, document,
'script', '//www.google-analytics.com/analytics.js', 'ga');
'script', 'https://www.google-analytics.com/analytics.js', 'ga');
/* General initialization */
ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
+6 -1
View File
@@ -17,7 +17,12 @@
<!-- Project name and verison -->
<div class="name">
<strong>{{ site_name }} {{ config.extra.version }}</strong>
<strong>
{{ site_name }}
<span class="version">
{{ config.extra.version }}
</span>
</strong>
<!-- Project repository name -->
{% if repo_id %}