|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft-07/schema", |
| 3 | + "title": "MkDocs plugin that enables a markdown tag like {{ read_csv('table.csv') }} to directly insert various table formats into a page.", |
| 4 | + "oneOf": [ |
| 5 | + { |
| 6 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/", |
| 7 | + "enum": ["table-reader"] |
| 8 | + }, |
| 9 | + { |
| 10 | + "type": "object", |
| 11 | + "properties": { |
| 12 | + "table-reader": { |
| 13 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/options/", |
| 14 | + "type": "object", |
| 15 | + "properties": { |
| 16 | + "base_path": { |
| 17 | + "title": "The base path where mkdocs-table-reader-plugin will search for input files. The path to your table files should be relative to the base_path.", |
| 18 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/options/#base_path", |
| 19 | + "type": "string", |
| 20 | + "enum": ["config_dir", "docs_dir"], |
| 21 | + "default": "config_dir" |
| 22 | + }, |
| 23 | + "data_path": { |
| 24 | + "title": "The path to your table files should be relative to the base_path. If you use a folder for all your table files you can shorten the path specification by setting the data_path.", |
| 25 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/options/#data_path", |
| 26 | + "type": "string", |
| 27 | + "default": "." |
| 28 | + }, |
| 29 | + "search_page_directory": { |
| 30 | + "title": "When enabled, if a filepath is not found, the plugin will also attempt to find the file relative to the current page's directory.", |
| 31 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/options/#search_page_directory", |
| 32 | + "type": "boolean", |
| 33 | + "default": true |
| 34 | + }, |
| 35 | + "allow_missing_files": { |
| 36 | + "title": "When enabled, if a filepath is not found, the plugin will raise a warning instead of an error.", |
| 37 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/options/#allow_missing_files", |
| 38 | + "type": "boolean", |
| 39 | + "default": false |
| 40 | + }, |
| 41 | + "select_readers": { |
| 42 | + "title": "Specify a list of reader to improve documentation build times for large sites.", |
| 43 | + "markdownDescription": "https://timvink.github.io/mkdocs-table-reader-plugin/options/#select_readers", |
| 44 | + "type": "array", |
| 45 | + "items": { |
| 46 | + "anyOf": [ |
| 47 | + { |
| 48 | + "const": "read_csv", |
| 49 | + "title": "{{ read_csv() }} passed to pandas.read_csv()", |
| 50 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_csv" |
| 51 | + }, |
| 52 | + { |
| 53 | + "const": "read_fwf", |
| 54 | + "title": "{{ read_fwf() }} passed to pandas.read_fwf()", |
| 55 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_fwf" |
| 56 | + }, |
| 57 | + { |
| 58 | + "const": "read_yaml", |
| 59 | + "title": "{{ read_yaml() }} is parsed with yaml.safe_load() and passed to pandas.json_normalize()", |
| 60 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_yaml" |
| 61 | + }, |
| 62 | + { |
| 63 | + "const": "read_table", |
| 64 | + "title": "{{ read_table() }} passed to pandas.read_table()", |
| 65 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_table" |
| 66 | + }, |
| 67 | + { |
| 68 | + "const": "read_json", |
| 69 | + "title": "{{ read_json() }} passed to pandas.read_json()", |
| 70 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_json" |
| 71 | + }, |
| 72 | + { |
| 73 | + "const": "read_feather", |
| 74 | + "title": "{{ read_feather() }} passed to pandas.read_feather()", |
| 75 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_feather" |
| 76 | + }, |
| 77 | + { |
| 78 | + "const": "read_excel", |
| 79 | + "title": "{{ read_excel() }} passed to pandas.read_excel()", |
| 80 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_excel" |
| 81 | + }, |
| 82 | + { |
| 83 | + "const": "read_raw", |
| 84 | + "title": "{{ read_raw() }} inserts contents from a file directly. This is great if you have a file with a table already in markdown format. It could also replace a workflow where you use the snippets extension to embed external files.", |
| 85 | + "description": "https://timvink.github.io/mkdocs-table-reader-plugin/readers/#read_raw" |
| 86 | + } |
| 87 | + ] |
| 88 | + }, |
| 89 | + "default": [ |
| 90 | + "read_csv", |
| 91 | + "read_fwf", |
| 92 | + "read_yaml", |
| 93 | + "read_table", |
| 94 | + "read_json", |
| 95 | + "read_feather", |
| 96 | + "read_excel", |
| 97 | + "read_raw" |
| 98 | + ] |
| 99 | + } |
| 100 | + }, |
| 101 | + "additionalProperties": false |
| 102 | + } |
| 103 | + }, |
| 104 | + "additionalProperties": false |
| 105 | + } |
| 106 | + ] |
| 107 | +} |
0 commit comments