Commit Graph

51 Commits

Author SHA1 Message Date
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
8ba6864282 Merge pull request #457 from d0ugal/search-new
Add search to MkDocs
2015-04-27 12:18:06 +01:00
Dougal Matthews
2b37deb188 Add further documentation about the pages config
This change explicitly calls out how to do multi-level documentation.

Closes #475
2015-04-26 09:02:13 +01:00
Dougal Matthews
835c27b5b2 Add details about implementing search in a custom theme 2015-04-25 10:03:47 +01:00
Dougal Matthews
eb75c8a71a Expanded the section at the start of styling your docs 2015-04-24 20:43:47 +01:00
Argoday
21d01f7219 Add strict parameter 2015-04-16 23:50:03 +01:00
Dougal Matthews
e7aef7a8cf Merge pull request #435 from waylan/mdx_config
Add support for Markdown extension options.
2015-04-15 08:14:35 +01:00
Dougal Matthews
7ef39aa4e2 Some minor updates to the documentation
- Added a small section about where to get help
- Updated link to the contributing guide
- Improved some o the code highlighting
2015-04-14 08:30:44 +01:00
Waylan Limberg
c8fbfa63da Add support for Markdown extension options.
I tried to keep the docs simple so non-python people would understand them
(I avoided calling the setting a 'dict,' etc.). Could probably use some
improvement.

All this extension mungling stuff should probably go in validate_config,
but that feels like an entireley differant issue than this, so I made the
changes inplace. Fixes #351
2015-04-08 12:06:37 -04:00
Dougal Matthews
0fc7ea5bc5 Update links to go directly to the organisation GitHub 2015-04-04 14:10:26 +01:00
Dougal Matthews
7ea8592fe7 The YAML samples were incorrectly being highlighted as dffs
Use fenced code blocks and specify YAML to correct this.
2015-04-03 15:34:34 +01:00
Dougal Matthews
724ec03de9 Some minor docs updates
- Remvoed a false promise from the home page
- Linked to the mailing list
- Fixed a broken screenshot link
2015-04-02 09:37:37 +01:00
Dougal Matthews
8d54cd850e Merge pull request #332 from samhatfield/master
First stab at custom theme documentation
2015-01-20 21:37:33 +00:00
seanstory
0475381d1c Update writing-your-docs.md
typo
2015-01-20 13:11:05 -06:00
Sam Hatfield
8c67109690 First stab at custom theme documentation
See #181.
2015-01-17 21:31:07 +00:00
Dougal Matthews
ceb83d051b Document extra_javascript and extra_css config options
See #307
2015-01-02 13:57:07 +00:00
Dougal Matthews
a92833944b Remove placeholder documentation 2015-01-02 13:56:10 +00:00
Dougal Matthews
bf2c5b31e1 Document google_analytics config option
See #307
2015-01-02 13:02:40 +00:00
Dougal Matthews
f16e62d9f9 Document copyright config option
See #307
2015-01-02 13:02:34 +00:00
Dougal Matthews
93d9f63582 Document repo_name config option
See #307
2015-01-02 13:02:22 +00:00
Dougal Matthews
249cdfae3a Change header levels
See #307
2015-01-02 13:02:03 +00:00
Dougal Matthews
5cb1ee1ec3 Remove references to non-existant theme ghostwriter 2014-12-17 19:36:32 +00:00
Dougal Matthews
1be54f9d87 Strip extra whitespace 2014-11-16 19:37:18 +00:00
Dougal Matthews
5d4b918c49 Remove Lorem ipsum 2014-10-13 21:23:01 +01:00
Dougal Matthews
d45288b56d Updated docs for multiple theme directories
Originally changed in 8f3c2b0.
2014-10-13 21:16:47 +01:00
Adrian Sampson
c60b3b6dcf Add docs for markdown_extensions 2014-08-08 14:57:19 -07:00
Alexander Pánek
4a263298e2 Add actual documentation
* site_url
* site_author
* site_description
* site_favicon
2014-05-21 15:17:06 +02:00
Adrien PETREMANN
795346898e Fix typo 2014-04-17 23:02:46 +02:00
Tom Christie
510fdef51f Hide unfinished docs. 2014-03-30 10:54:17 +01:00
Tom Christie
64901f7e3d Minor copy changes. 2014-03-30 10:53:51 +01:00
Tom Christie
9231c8f20c More documentation on build directories 2014-03-02 16:17:32 +00:00
Tom Christie
7c353b62de Merge pull request #34 from alcesleo/theme_documentation
Simple docs on theme and theme_dir
2014-03-02 16:01:48 +00:00
Tom Christie
7228519e59 Docs on dev_addr and use_directory_urls 2014-03-02 15:43:36 +00:00
Jimmy Börjesson
cee117e33f Update configuration.md 2014-02-25 08:53:59 +01:00
alcesleo
d3bbc7ebbf Documented repo_url 2014-02-22 16:43:25 +01:00
alcesleo
1e8f6b45cf Relative path in theme_dir docs 2014-02-22 09:24:02 +01:00
Jimmy Börjesson
04de30b8a7 Reads better 2014-02-21 19:31:48 +01:00
alcesleo
f6592e6b2d Simple docs on theme and theme_dir 2014-02-21 19:21:13 +01:00
Tom Christie
574bfe6783 Include more md extensions in docs 2014-02-11 20:45:22 +00:00
Tom Christie
99079ecf77 Add docs on tables 2014-02-11 13:42:05 +00:00
Tom Christie
e8fe5442a3 Add tables support 2014-02-11 13:31:00 +00:00
Tom Christie
99a36cd0d9 Tweak 2014-02-10 19:44:43 +00:00
Tom Christie
980947897e Minor docs tweak 2014-02-08 21:54:40 +00:00
Tom Christie
99963ec56a Anchor links work correctly with internal hyperlinks, added docs. 2014-02-08 21:48:57 +00:00
Tom Christie
64d0477fc4 Tests and implementation tweaks for internal hyperlinking 2014-02-08 21:11:12 +00:00
Tom Christie
9dcd88170b Allow pages with no title in config, and add default pages value. Closes #25 2014-02-07 19:39:34 +00:00
Tom Christie
e530965075 Theme & build tweaks 2014-02-03 17:10:34 +00:00
Tom Christie
42bd5affac Refactoring + getting context/config properly sorted 2014-02-01 22:22:43 +00:00
Tom Christie
8dc0777813 local_file_urls -> use_directory_urls 2014-01-29 16:46:10 +00:00
Tom Christie
ca36975deb Tweaks for version 0.2 release 2014-01-21 17:12:23 +00:00