Commit Graph

279 Commits

Author SHA1 Message Date
Waylan Limberg
4b8626c166 Improved theme config docs. 2017-10-19 14:47:17 -04:00
Jesse Kinkead
3f98d1deb3 Add "edit link" support to MkDocs theme.
Theme shows either a repo link or an edit link depending on whether
`edit_uri` is set. Also clarified documentation that this behavior is
dependant upon theme support. Fixes #1129.
2017-10-19 10:05:06 -04:00
Waylan Limberg
84906a7a6c Updated release-notes.
Added last missing item in list of changes.

Changed version from 1.0.0 to 0.17.0 as that will be the next release.
2017-10-18 11:19:26 -04:00
Waylan Limberg
b5f33bf1ea Partially Revert "Remove deprecated autofill of extra configs."
This partially reverts commit f90c44a20d.

The behavior is still deprecated, but a warning is now issued to inform
the user that the "extra" files not listed have been ignored.
2017-10-13 19:29:33 -04:00
Waylan Limberg
31e7c29784 Set 'search' as a default plugin.
Maintains better backward-compatability. Documentation updated, including
how to override the default. Also renamed the entry_point to 'search'.
The lib is still 'legacy_search'. When a new/better search plugin is
developed, the `search` entry_point will be pointed there so the default
behavior will inlcude the upgrade and a new `entry_point` will be added
('legacy_search') which points to the old plugin for those who really want
it.
2017-10-12 16:12:40 -04:00
Waylan Limberg
66a282c44c Update release notes. 2017-10-04 14:24:13 -04:00
Frank Sachsenheim
a0e7f17488 Cleanup in plugin docs 2017-10-01 16:48:47 -04:00
Frank Sachsenheim
e1455e7a02 plugins: Adds a load_page_markdown event
This allows to override the loading of source files,
e.g. to fetch it from a remote location or for
generated contents.
2017-10-01 16:48:47 -04:00
Waylan Limberg
ffae0ef89c The Plugin API. (#1223)
See the included documentation for a full explanation of the API.

Search has been removed and wrapped in a plugin (named "legacy_search").
The search feature was ported as-is. None of the open issues with search
have been addressed. Presumably, a new search plugin will be built from
the ground up which addresses those issues.

Note that there is no 'default' plugins. That means that users get no
search unless they enable it in the config by adding the following to
their `mkdocs.yml` file:

    plugins:
        - legacy_search

Fixes #206
2017-10-01 16:48:47 -04:00
Waylan Limberg
75350da44c Theme refactor.
Themes now have `theme` objects, and theme specific configs.
Themes can inherit from other themes. Users (and theme authors)
can define custom static templates and variables.
2017-10-01 16:48:47 -04:00
Waylan Limberg
b9af8b1fba Refactor Markdown handling. (#1180)
All Markdown handling is now contained within the `Page` object, which
external code no longer needs to know the internals of.
A slightly different approach to the work started in #713.

Include the multimarkdown meta-data parser from docdata
See: https://github.com/waylan/docdata

Tests have been updated. However, as noted in #713, they could use
some refactoring. The existing tests all pass. We can leave refactoring
as a seperate matter from this.

Closes #713.
2017-10-01 16:48:47 -04:00
Waylan Limberg
b4cc6c3367 Removed special error message for mkdocs-bootstrap and mkdocs-bootswatch themes.
Related to #1168.
2017-10-01 16:48:47 -04:00
Waylan Limberg
8af4b64435 Release-notes cleanup. 2017-10-01 16:48:47 -04:00
Waylan Limberg
74980574a9 Removed workaround for missing main.html in themes.
Related to #1168.
2017-10-01 16:48:47 -04:00
Waylan Limberg
6b1f014c2a Remove deprecated template variables.
Related to #1168.
2017-10-01 16:48:47 -04:00
Waylan Limberg
db56c73795 Remove support for deprecated pages config.
Related to #1168.
2017-10-01 16:48:47 -04:00
Waylan Limberg
99936b803b Remove previously deprecated json command.
Closes #481.
2017-10-01 16:48:47 -04:00
Waylan Limberg
418965977f Drop support for Python 2.6.
MkDocs most likley will no longer run on Python 2.6. All relevant tests
have been removed. Closes #165.
2017-10-01 16:48:47 -04:00
Waylan Limberg
931e8d0ab8 Bumped version to 1.0.dev 2017-10-01 16:48:47 -04:00
Scott Radvan
ca36f0c341 Fix two minor typos. 2017-09-28 08:19:40 -04:00
Oscar Vasquez
aa9a2fdcea Added support for query and fragment strings in edit_uri 2017-05-12 23:42:27 -04:00
Georgii Staroselskii
bf4938d5b9 custom-themes.md: fix a homepage typo (#1199)
s/hompage/homepage
2017-04-06 08:50:09 -04:00
Waylan Limberg
f8c3433b3d Bump version to 0.16.3. 2017-04-04 17:56:12 -04:00
Waylan Limberg
4769f0054e Start release notes for 0.16.3 (#1192) 2017-04-04 14:13:40 -04:00
Terrell Russell
59026644f1 fix typo (#1185)
Fixes #1184
2017-04-04 10:07:20 -04:00
John Kerssens
82bcdbab69 Fix typos (#1181) 2017-04-04 10:07:02 -04:00
Waylan Limberg
8c9773dc36 Version bump to 0.16.2 2017-03-13 21:59:01 -04:00
Waylan Limberg
7a8159738f Updated release-notes. 2017-03-13 21:45:34 -04:00
Waylan Limberg
1795d7655a System root ("/") is not a valid path for site_dir or docs_dir.
As neither setting can point at a child dir of the other, "/" would be an
invalid value for either setting. However, given its unique nature,
os.path.abspath does not follow normal bahavior of returning a string without
an ending slash when passed "/". Therefore, we need to special case it.

Fixes #1161.
2017-03-13 21:45:34 -04:00
Itamar Ostricher
48ad73c64b Fix spelling 2017-03-13 11:57:25 +02:00
Itamar Ostricher
b16dfa6d36 Fix spelling 2017-03-13 10:48:13 +02:00
Waylan Limberg
58441f368b Templates have extension .html (typo fix in docs). 2017-03-12 19:36:59 -04:00
Kevin J. Qiu
590ae3114d Fix typo (#1146) 2017-03-01 16:10:45 -05:00
Dougal Matthews
f5e9339579 Bump the version and add release notes 2016-12-22 09:06:58 +00:00
Dougal Matthews
ecc0550c71 Correct the default for the remote_name config
See: https://github.com/mkdocs/mkdocs/blob/master/mkdocs/config/defaults.py#L119
2016-11-23 22:14:59 +00:00
Pascal Berger
b84443a365 Add chocolatey to list of supported package managers (#1091) 2016-11-15 09:47:33 -05:00
Pascal Berger
f4846d197a Remove link added twice 2016-11-08 21:00:50 +01:00
Dougal Matthews
088828b227 Bumping the Mkdocs Version to roll a release 2016-11-04 10:48:26 +00:00
Waylan Limberg
503ad7e9b6 Document using theme_dir and template blocks togeather. 2016-11-03 13:10:12 -04:00
Waylan Limberg
1a087f62ed Merge pull request #1068 from waylan/config-links
Clean up configuration.md links.
2016-10-06 15:19:13 -04:00
Waylan Limberg
d39743b17b Clean up configuration.md links.
They were a mess. Fixes #1058
2016-10-06 14:46:41 -04:00
Michael William Boldt
fdd6e5ac52 Fix typo (Stardard -> Standard) 2016-10-06 10:13:30 -05:00
Waylan Limberg
fa2c1f3823 Added a screenshot to help with Windows installation.
This is, after all, the most commonly encountered problem by users.
At least it seems to be.
2016-09-28 10:15:18 -04:00
Waylan Limberg
aebfcdc39c Merge pull request #1026 from waylan/global_vars
Global Template vars refactor
2016-09-28 09:07:12 -04:00
Waylan Limberg
384428bc5e Added some system specific installation instructions.
Added a section covering package managers and some more notes
about Windows (specificly about adding Python to the PATH).
Fixes #932.
2016-09-27 20:19:02 -04:00
Waylan Limberg
f5b5446b71 Use absolute URLs in nav & media links from error templates.
An error page can be served from any location and therefore it is
impossable to pre-build an error page with correct relative URLs.
With absolute URLs, the error pages will properly link to other
pages in the nav as well as media files (css, js, images, etc) from
the template regardless of the actual URL the file is served from.

However, to continue to support environments where the docs root is a subdir
of the server root, all other pages must continue to use relative URLs.
The `site_url` is used to determine the server root when building
absolute URLs for the error page to ensure those URLs continue to work
in that type of environment.

Relative URLs are also nessecary for those who browse the site on the
local file system (via `file://`). In that case, the error page will be
broken. However, as error pages are not served by a local file system,
this is no more than a minor inconvience. Error pages should always be
tested from a server environment.

Fixes #77.
2016-08-29 10:14:09 -04:00
Waylan Limberg
de2a7370de Fix a couple markdown lint errors.?? 2016-08-25 21:42:41 -04:00
Waylan Limberg
1444523c0a Update release notes for recent commits. 2016-08-25 21:40:39 -04:00
Waylan Limberg
50e1734490 Deprecate site_favicon config setting and favicon template var
Templates need only include `{{ base_url }}/img/favicon.ico` and
users only need to create a file at `img/favicon.ico` in their
`docs_dir`.

Fixes #725.
2016-08-18 14:24:12 -04:00
Waylan Limberg
b4ddc867ec Improve installation instructions. (#1028)
Remove chocolately recomendation, which was never any good for Python.
2016-08-16 21:00:07 -04:00