|
50 | 50 |
|
51 | 51 | import mslib.mswms.wms |
52 | 52 | import mslib.mswms.gallery_builder |
| 53 | +import importlib |
53 | 54 |
|
54 | 55 | # Generate template plots |
55 | 56 | from docs.gallery.plot_examples import HS_template, VS_template |
| 57 | +from mslib.mswms.mpl_lsec_styles import LS_DefaultStyle |
56 | 58 | dataset = [next(iter(mslib.mswms.wms.mss_wms_settings.data))] |
57 | 59 | mslib.mswms.wms.mss_wms_settings.register_horizontal_layers = [(HS_template.HS_Template, dataset)] |
58 | 60 | mslib.mswms.wms.mss_wms_settings.register_vertical_layers = [(VS_template.VS_Template, dataset)] |
59 | | -mslib.mswms.wms.mss_wms_settings.register_linear_layers = [] |
| 61 | +mslib.mswms.wms.mss_wms_settings.register_linear_layers = [(LS_DefaultStyle, dataset)] |
60 | 62 | mslib.mswms.wms.server.__init__() |
61 | | -mslib.mswms.wms.server.generate_gallery(sphinx=True, create=True, clear=True) |
62 | | -mslib.mswms.gallery_builder.plots = {"Top": [], "Side": [], "Linear": []} |
| 63 | +mslib.mswms.wms.server.generate_gallery(sphinx=True, create=True, clear=True, simple_naming=True) |
| 64 | +importlib.reload(mslib.mswms.gallery_builder) |
63 | 65 |
|
64 | 66 | # Generate all other plots |
65 | | -mslib.mswms.wms.server.generate_gallery(sphinx=True, generate_code=True, all_plots=True) |
| 67 | +mslib.mswms.wms.server.generate_gallery(sphinx=True, generate_code=True, all_plots=True, levels="3,4,200,300", |
| 68 | + vtimes="2012-10-18T00:00:00,2012-10-19T00:00:00") |
66 | 69 |
|
67 | 70 | # readthedocs has no past.builtins |
68 | 71 | try: |
|
231 | 234 | # Add any paths that contain custom static files (such as style sheets) here, |
232 | 235 | # relative to this directory. They are copied after the builtin static files, |
233 | 236 | # so a file named "default.css" will overwrite the builtin "default.css". |
234 | | -html_static_path = ['mss_theme'] |
| 237 | +html_static_path = ['mss_theme', 'gallery/plots'] |
235 | 238 |
|
236 | 239 | # Add any extra paths that contain custom files (such as robots.txt or |
237 | 240 | # .htaccess) here, relative to this directory. These files are copied |
|
0 commit comments