Commit Graph

1358 Commits

Author SHA1 Message Date
Waylan Limberg
54a6e9efbc Update to bootswatch 4.1.3. (#1597)
Fixes #1563.
2018-09-27 14:51:11 -04:00
Waylan Limberg
873b970f7f Update readthedocs theme with upstream (#1594)
Fixes #588 and fixes #1374.

# Some implementation notes:

## `include_homepage_in_sidebar` setting

Note that the homepage is always linked from the site_name above the 
search box. Therefore it does not need to also be in the nav tree.
In the upstream Sphinx theme, this is controlled when defining the 
toctree. However, Sphinx has a separate setting for identifying the 
"homepage". In MkDocs the homepage is identified as the first item in 
the `nav`. Therefore, without this setting you can't exclude the 
homepage from the sidebar like you can in Sphinx. With this setting we 
get feature parity.

## Nested sections

This output is a little weird as the section title is a link that does 
nothing when you click it. You need to click the `+` to expand the 
submenu. But that is what the upstream theme requires to work.
2018-09-27 13:19:17 -04:00
Waylan Limberg
8a9a60989c Bump version to 1.1.dev 2018-09-27 11:04:59 -04:00
Zrss
3642c4e03e Document --dev-addr instead of --dev_addr (#1638)
Fixes #1637.
2018-09-25 09:51:05 -04:00
Waylan Limberg
e37d1c9b06 Example now matches actual usage.
As pointed out in #1633 the example of overriding a template block used an undefined block name. The example has been updated to use an actual block name.
2018-09-20 13:09:25 -04:00
Jon Dufresne
fc53f1932e Prefer https:// URLs where available 2018-09-18 11:21:13 -04:00
Jon Dufresne
a2d4241658 Include license file in the generated wheel package
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file

Helps project comply with its own license:

> Redistributions in binary form must reproduce the above copyright
> notice, this list of conditions and the following disclaimer in the
> documentation and/or other materials provided with the distribution.

Additionally, rename [wheel] section to [bdist_wheel] as the former is
legacy. For additional details, see:

3dc261abc9/wheel/bdist_wheel.py (L127-L133)

http://pythonwheels.com/
2018-09-18 09:33:27 -04:00
Waylan Limberg
592e0852fe Bump version to 1.0.4. 1.0.4 2018-09-07 12:02:41 -04:00
Waylan Limberg
d0c39749b2 Ignore absolute links in Markdown.
Fixes #1621.
2018-09-05 11:41:32 -04:00
Bastien
8fbaae60ab Update index.md
fix `pages` in `nav`
pages is deprecated
2018-08-30 17:25:45 -04:00
Jon Dufresne
d71aa3bbf1 Update pypi.python.org URL to pypi.org
For details on the new PyPI, see the blog post:

https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-08-30 08:42:31 -04:00
Waylan Limberg
6a57799769 Bump version to 1.0.3. 1.0.3 2018-08-29 14:21:44 -04:00
Waylan Limberg
9b116b5fbc Warn on relative paths in nav. (#1613)
While this feels like a feature change/addition, it is addressing a regression and is therefore being treated as a bug-fix.

Note that prior to 1.0 this was handled as part of the config validation. t is now handled after config validation completes. In strict mode, warnings issued in config validation interrupt the build after config validation is complete--causing the build to not complete. Warnings issued during the build (after config validation passes) allow the build to complete and only exit with a failed return code.

Closes #1604.

This also deletes relative_path_ext.py. That file was supposed to be removed some time ago. Not sure how it managed to return.
2018-08-29 13:25:07 -04:00
Waylan Limberg
1739e708f5 Fix typo 2018-08-27 13:08:20 -04:00
Waylan Limberg
f13bf0148a Remove reference to now deprecated template vars (#1610)
Fixes #1608.
2018-08-27 11:00:51 -04:00
c-bb
c16ea3ae77 writing-your-docs.md: fix typo 2018-08-24 10:52:52 -04:00
David Ashby
c3bd87c004 handle existing but empty theme_config.yml files correctly 2018-08-22 13:07:46 -04:00
Waylan Limberg
954b4cb0da Dump version to 1.0.2 1.0.2 2018-08-22 11:55:27 -04:00
Waylan Limberg
1a5c4a7f6c Fix base_url in error pages. (#1599)
Closes #1598.
2018-08-21 15:04:31 -04:00
Waylan Limberg
da3a252cde Bump version to 1.0.1. 1.0.1 2018-08-13 13:40:33 -04:00
Yeray Diaz Diaz
7aaf5a685c Prevent pressing Enter in search box from reloading the page 2018-08-12 20:03:08 -04:00
Yeray Diaz Diaz
24d61cec13 Avoid calling search until all assets, worker or otherwise, are ready 2018-08-12 20:03:08 -04:00
Christian Oliff
074f119802 Https link 2018-08-11 08:44:34 -04:00
Waylan Limberg
c872896c49 Exclude README.md if index.md is present. (#1582)
Also properly sort READMEs.

Fixes #1580
2018-08-08 10:25:38 -04:00
Waylan Limberg
4076d7de43 Fix RTD Navigation bug.
Fixes #1575.
2018-08-03 20:43:29 -04:00
Waylan Limberg
8bd00d5f91 markdownlint cleanup 1.0 2018-08-03 10:26:40 -04:00
Waylan Limberg
1f41f33eae Upped version 1.0 Final! 2018-08-03 10:26:40 -04:00
David Fischer
a5420be30d Add a ReadTheDocs yaml config file 2018-07-28 18:54:13 -04:00
Waylan Limberg
30cdf59077 Up version to 1.0rc1 1.0rc1 2018-07-27 11:20:48 -04:00
Waylan Limberg
a11437e8cb Use DEBUG log level for external links in nav.
Fixes #1564.
2018-07-23 14:33:39 -04:00
Waylan Limberg
cd5c80375c Up version to 1.0b1 1.0b1 2018-07-20 14:00:06 -04:00
coliff
6c097ecbdb Losslessly optimize images with gulp-imagemin
Saved 197KB (38%)
2018-07-19 11:53:56 -04:00
coliff
b4b49a1f52 HTTPS Links 2018-07-19 11:53:56 -04:00
Christian Oliff
39dc230b6d HTTPS links to www.mkdocs.org (#1558) 2018-07-19 10:04:00 -04:00
Waylan Limberg
06608e98a7 Add hljs_style config to mkdocs theme.
This is primarily to allow third party themes which inherit from the 
mkdocs theme (such as the bootswatch themes) to alter the code 
highlighting style. Previously all of the themes hosted their own 
highlighting styles, but now that we are using the CDN, it is easier to 
use a setting, which downstream themes can override.
2018-07-17 16:14:45 -04:00
Christian Oliff
8f94fa9b4d HTTPS links (#1554)
HTTPS link to MkDocs site
Always load highlight.js over HTTPS
2018-07-17 11:47:28 -04:00
Waylan Limberg
5ff7ee32fa Up version to 1.0a1 1.0a1 2018-07-13 20:56:14 -04:00
Waylan Limberg
19e24350f2 Switch Markdown linter to node based markdownlint-cli.
I've prefered the node based linter to the ruby one, but it didn't have
a CLI until recently. Also the config file is in an easier format.
2018-07-13 20:13:50 -04:00
Waylan Limberg
5ebcb5d1ca Set MarkdownLint list indent level to 4 2018-07-13 17:40:31 -04:00
Waylan Limberg
21449eeea8 Don't conflict with accessibility shortcuts.
In both built-in themes, the default next/prev shortcut keys were
changed from arrows to n/p as the arrows conflict with common browser
accessibility extensions.

In the mkdocs theme,  users can now configure the shortcuts to whatever
they want. Note that these config options are theme specific. The
readthedocs theme does not get these options as they are not available
on the parent theme.

Fixes #1502
2018-07-13 17:40:31 -04:00
Jon Dufresne
27f06517db Run Travis tests on PY37 rather than PY37-dev (#1547) 2018-07-12 20:18:33 -04:00
Waylan Limberg
b89d309c5f User friendly YAML parse errors.
This provides a clearer error for users who have an invalid config file. 
Partially addresses #1543.
2018-07-12 16:17:24 -04:00
Waylan Limberg
7c0d0b7624 Add official support for PY37. (#1545)
* Use Python 3.7-dev in Travis until they add official support for PY37.
* PY37 requires PyYAML 3.13+.
2018-07-12 15:24:19 -04:00
Waylan Limberg
c99ea4e250 Missing theme config file raises an error.
Previously a warning was raised and the build proceeded.
2018-07-11 14:54:58 -04:00
Waylan Limberg
ad867796eb theme_dir config fully Deprecated.
An error is now raised if the option is defined.
2018-07-11 14:54:58 -04:00
Waylan Limberg
d0c67b849c Empty extra_css and extra_javascript settings no longer raise a warning.
This fully deprecates autopopulating those settings.
2018-07-11 14:54:58 -04:00
Waylan Limberg
da92f72ec8 Add support for YAML meta data. (#1542)
If the frontmatter is surrounded by YAML deliminators, then it is parsed 
as YAML. Otherwise it is parsed as MultiMarkdown meta-data and each 
value is returned as a joined string.

Closes #1471.
2018-07-11 13:18:20 -04:00
Waylan Limberg
5c261d250f Include all blocks in base template: mkdocs theme.
Fixes #1142 for mkdocs theme. RTD theme will be addressed with #588.
2018-07-10 14:12:14 -04:00
Waylan Limberg
5223e274c1 Fix mkdocs theme TOC.
The sidebar was under the left margin of the main content and not 
clickable. This moves the sidebar to the top so it is accessable. Not 
sure when this got broken. Maybe #1387 or #1389 or #1395.
2018-07-10 11:42:30 -04:00
Waylan Limberg
5e59af5ca3 Remove some unused code. (#1538)
These were some orphaned remnants from the pages refactor.
2018-07-06 16:32:11 -04:00