From 32bb22124d906b5e96b48828dc762a0d711a42ff Mon Sep 17 00:00:00 2001 From: Fabian Pedregosa <fabian.pedregosa@inria.fr> Date: Tue, 14 Dec 2010 18:36:01 +0100 Subject: [PATCH] web page layout fixes. --- doc/index.rst | 2 +- doc/sphinxext/gen_rst.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/index.rst b/doc/index.rst index d71e357434..b9d1471a35 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -122,7 +122,7 @@ Example Gallery =============== .. toctree:: - :maxdepth: 1 + :maxdepth: 2 auto_examples/index diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py index 8d9626454f..038b8cfeb6 100644 --- a/doc/sphinxext/gen_rst.py +++ b/doc/sphinxext/gen_rst.py @@ -92,6 +92,9 @@ def generate_example_rst(app): # we create an index.rst with all examples fhindex = file(os.path.join(root_dir, 'index.rst'), 'w') fhindex.write("""\ +Examples +======== + .. _examples-index: """) # Here we don't use an os.walk, but we recurse only twice: flat is -- GitLab