|
1 | 1 | from __future__ import unicode_literals
|
2 | 2 |
|
3 |
| -import six |
4 |
| - |
5 | 3 | from mkdocs import utils
|
6 | 4 | from mkdocs.config import config_options
|
7 | 5 |
|
|
16 | 14 | DEFAULT_SCHEMA = (
|
17 | 15 |
|
18 | 16 | # Reserved for internal use, stores the mkdocs.yml config file.
|
19 |
| - ('config_file_path', config_options.Type(six.string_types)), |
| 17 | + ('config_file_path', config_options.Type(utils.string_types)), |
20 | 18 |
|
21 | 19 | # The title to use for the documentation
|
22 |
| - ('site_name', config_options.Type(six.string_types, required=True)), |
| 20 | + ('site_name', config_options.Type(utils.string_types, required=True)), |
23 | 21 |
|
24 | 22 | # Defines the structure of the navigation and which markdown files are
|
25 | 23 | # included in the build.
|
|
30 | 28 |
|
31 | 29 | # A description for the documentation project that will be added to the
|
32 | 30 | # HTML meta tags.
|
33 |
| - ('site_description', config_options.Type(six.string_types)), |
| 31 | + ('site_description', config_options.Type(utils.string_types)), |
34 | 32 | # The name of the author to add to the HTML meta tags
|
35 |
| - ('site_author', config_options.Type(six.string_types)), |
| 33 | + ('site_author', config_options.Type(utils.string_types)), |
36 | 34 |
|
37 | 35 | # The path to the favicon for a site
|
38 |
| - ('site_favicon', config_options.Type(six.string_types)), |
| 36 | + ('site_favicon', config_options.Type(utils.string_types)), |
39 | 37 |
|
40 | 38 | # The MkDocs theme for the documentation.
|
41 | 39 | ('theme', config_options.Theme(default='mkdocs')),
|
|
51 | 49 | ('theme_dir', config_options.ThemeDir(exists=True)),
|
52 | 50 |
|
53 | 51 | # A copyright notice to add to the footer of documentation.
|
54 |
| - ('copyright', config_options.Type(six.string_types)), |
| 52 | + ('copyright', config_options.Type(utils.string_types)), |
55 | 53 |
|
56 | 54 | # set of values for Google analytics containing the account IO and domain,
|
57 | 55 | # this should look like, ['UA-27795084-5', 'mkdocs.org']
|
58 | 56 | ('google_analytics', config_options.Type(list, length=2)),
|
59 | 57 |
|
60 | 58 | # The address on which to serve the live reloading docs server.
|
61 | 59 | ('dev_addr', config_options.Type(
|
62 |
| - six.string_types, default='127.0.0.1:8000')), |
| 60 | + utils.string_types, default='127.0.0.1:8000')), |
63 | 61 |
|
64 | 62 | # If `True`, use `<page_name>/index.hmtl` style files with hyperlinks to
|
65 | 63 | # the directory.If `False`, use `<page_name>.html style file with
|
|
75 | 73 | # A name to use for the link to the project source repo.
|
76 | 74 | # Default, If repo_url is unset then None, otherwise
|
77 | 75 | # "GitHub" or "Bitbucket" for known url or Hostname for unknown urls.
|
78 |
| - ('repo_name', config_options.Type(six.string_types)), |
| 76 | + ('repo_name', config_options.Type(utils.string_types)), |
79 | 77 |
|
80 | 78 | # Specify which css or javascript files from the docs directory should be
|
81 | 79 | # additionally included in the site. Default, List of all .css and .js
|
|
108 | 106 |
|
109 | 107 | # the remote branch to commit to when using gh-deploy
|
110 | 108 | ('remote_branch', config_options.Type(
|
111 |
| - six.string_types, default='gh-pages')), |
| 109 | + utils.string_types, default='gh-pages')), |
112 | 110 |
|
113 | 111 | # extra is a mapping/dictionary of data that is passed to the template.
|
114 | 112 | # This allows template authors to require extra configuration that not
|
|
0 commit comments