25 Commits

Author SHA1 Message Date
Waylan Limberg
ea02a2eea3 Deprecate auto-populating extra_css/javascript. 2016-08-09 22:50:35 -04:00
Dougal Matthews
4bb605c6cb Add a note about the MkDocs team members.
We never explicitly listed people before, this should make it
clearer who is behind the project.

Fixes #950
2016-06-28 20:59:34 +01:00
Dougal Matthews
44fc6d9230 Added docuementation for packaging themes 2015-06-27 11:03:30 +01:00
Dougal Matthews
e16f9384ea Add site_author and site_description to the ReadTheDocs theme
Fixes #631
2015-06-16 09:24:26 +01:00
Dougal Matthews
77216f4c7e Revert to manually defining the Pages so we can order them 2015-06-12 13:08:49 +01:00
Dougal Matthews
d1a19a00a1 Deprecate non-behaviourable config options
This change adds the ability to validate nested properties, such as
those within 'extra' and provides a deprecated config option for those
that have been moved.
2015-05-24 10:26:57 +01:00
Waylan Limberg
a6fc4f9420 Refactor Markdown Extension Options Config.
Config validation now handles all extension processing:

* Builtin extensions are defined and within the default scheme.
* User extensions are defined only as a list in the config. Note, this is
  a backward incompatable change from the previous (short-lived) release.
* The users extensions are added to the list of builtins.
* Any duplicates are accounted for in validation.
* Extension options are supported by a child key/value pair on the ext name.
* All extension options are compiled into a format Markdown accepts
  within the validation process and are saved to the internal `mdx_configs`
  config setting.
* The `mdx_configs` setting is private and raises an error if set by the user.
* A whole suite of tests were added to test all aspects of ext validation.

All relevant build tests were updated to pass the config to
`build.convert_markdown` as the config now handles all extension data.

The relevant documentation was updated to reflect the changes. While I was
at it, I spellchecked the entire document and made a few additional formatting
changes.

This fixes #519 plus a lot more.
2015-05-16 10:40:55 -04:00
Dougal Matthews
984029ab52 Update auto pages configuration under the new nested Navigation structure.
Fixes #499
2015-05-06 14:21:33 +01:00
Dougal Matthews
8085c65c6a Refactor the pages configuration
The current pages configuration looks like this:

    pages:
    - ['index.md', 'Home']
    - ['writing-your-docs.md', 'User Guide', 'Writing your docs']
    - ['styling-your-docs.md', 'User Guide', 'Styling your docs']
    - ['configuration.md', 'User Guide', 'Configuration']
    - ['about/license.md', 'About', 'License']
    - ['about/release-notes.md', 'About', 'Release Notes']
    - ['about/contributing.md', 'About', 'Contributing']

This has a number of flaws:

- It isn't clear how to add second levels of navigation for
  newcomers. This is often queried and not easy to document.

- We are representing a tree structure as a set of flat items
  that need to be merged. This creates some interesting edge
  cases, for example:

    - ['writing-your-docs.md', 'User Guide']
    - ['styling-your-docs.md', 'User Guide', 'Styling your docs']

 Is the first entry a page with the title User Guide? or a page
 in the User Guide category with an automatic title.

- We are currently limited to two levels deep in the navigation.
  Changing this with the current structure isn't trivial.

This change adds a new format which makes the above configuration
look like this:

    pages:
    - Home: index.md
    - User Guide:
        - user-guide/writing-your-docs.md
        - user-guide/styling-your-docs.md
        - user-guide/configuration.md
    - About:
        - License: about/license.md
        - about/release-notes.md
        - Contributing: about/contributing.md

With this structure, we can more easily see the documentation
tree and it is far more obvious what the navigation will look
like. It also removes the ambiguous edge cases and opens up the
possibility of adding further levels to the navigation more
easily.

This change restructures the pages configuration, but doesn't yet
allow users to add further levels in the navigation.

Fixes #6
2015-05-05 08:38:18 +01:00
Dougal Matthews
b5bd1c7f0b Add building extra templates
This is similar to extra_css and extra_javascript except it picks up
HTML and XML files and runs them through jinja2 with the global context.
This adds for quite a bit of flexability and allows people to easily add
custom site maps, static and templates htlp.

Fixes #28
Fixes #44
2015-04-28 20:43:19 +01:00
Dougal Matthews
835c27b5b2 Add details about implementing search in a custom theme 2015-04-25 10:03:47 +01:00
Dougal Matthews
621f38c9ff Enable permalinks in the MkDocs docs.
They were used a bit in the previous doc additions, so makes sense to
add them.
2015-04-24 20:44:18 +01:00
Dougal Matthews
0fc7ea5bc5 Update links to go directly to the organisation GitHub 2015-04-04 14:10:26 +01:00
Dougal Matthews
bdbf2ce5ed Added an initial Contributing guide 2015-04-03 14:47:00 +01:00
Dougal Matthews
e1366d0a18 Initial release notes 2014-10-09 09:47:38 +01:00
Tom Christie
b7dc915716 Tidy up config. 2014-03-30 16:02:55 +01:00
Tom Christie
ba8212f14d Fix google analytics code 2014-02-26 09:30:18 +00:00
Tom Christie
5c54f73619 Version 0.5 2014-02-26 09:26:55 +00:00
Tom Christie
0303e87a1d MkDocs theme becomes built-in 2014-02-05 09:30:50 +00:00
Tom Christie
e530965075 Theme & build tweaks 2014-02-03 17:10:34 +00:00
Tom Christie
b10bf24f74 pages -> list, instead of '/' delimited 2014-02-03 09:10:49 +00:00
Tom Christie
42bd5affac Refactoring + getting context/config properly sorted 2014-02-01 22:22:43 +00:00
Tom Christie
6b3f83bfe3 Use custom cerulean-based theme 2014-01-29 20:06:13 +00:00
Tom Christie
8dc0777813 local_file_urls -> use_directory_urls 2014-01-29 16:46:10 +00:00
Tom Christie
9197be3c55 mkdocs.yaml - > mkdocs.yml 2014-01-28 16:18:39 +00:00