From ec8545094c4a6ad96e14046ddf2d0589c0de9851 Mon Sep 17 00:00:00 2001 From: Jessica Mitchell Date: Thu, 29 Feb 2024 13:09:12 +0100 Subject: [PATCH 1/6] add css to make try it on ebrains button more buttony --- doc/htmldoc/static/css/custom.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/htmldoc/static/css/custom.css b/doc/htmldoc/static/css/custom.css index 78da2cc40f..57c9ce3616 100644 --- a/doc/htmldoc/static/css/custom.css +++ b/doc/htmldoc/static/css/custom.css @@ -97,7 +97,27 @@ section#kernel-attributes-nest-nestmodule dd { border: none; border-bottom: 1px solid #ddd; } +.imgbutton { + background-color: white; + outline-color: lightgray !important; + outline-style: solid !important; + outline-width: 1px !important; + padding-top: 20px !important; + padding-bottom: 20px !important; + box-shadow: 3px 3px lightgray !important; +} + +.imgbutton:hover { + + background-color: white; + outline-color: var(--nest-orange) !important; + outline-style: solid !important; + outline-width: 1px !important; + padding-top: 20px !important; + padding-bottom: 20px !important; + box-shadow: 3px 3px var(--nest-orange) !important; +} /************************************************************* * Rules for mermaid diagrams *************************************************************/ From c44627895bf1abadde4b674251c748888df326ba Mon Sep 17 00:00:00 2001 From: Jessica Mitchell Date: Thu, 29 Feb 2024 13:09:33 +0100 Subject: [PATCH 2/6] add card in install for installation free service --- doc/htmldoc/installation/index.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/htmldoc/installation/index.rst b/doc/htmldoc/installation/index.rst index 2c4bc1a2e7..c81f4d4d10 100644 --- a/doc/htmldoc/installation/index.rst +++ b/doc/htmldoc/installation/index.rst @@ -27,6 +27,20 @@ Install NEST * :ref:`dev_install` + .. grid-item-card:: |launch| Try NEST installation-free + :class-title: sd-d-flex-row sd-align-minor-center + :columns: 4 + + With the JupyterHub service from EBRAINS you can + try out NEST (and many other tools) directly in your browser. + + .. rst-class:: imgbutton + + .. image:: https://nest-simulator.org/TryItOnEBRAINS.png + :target: https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fnest%2Fnest-simulator-examples&urlpath=lab%2Ftree%2Fnest-simulator-examples%2Fnotebooks%2Fnotebooks%2Fone_neuron.ipynb&branch=main + + For more info see :ref:`our guide to running notebooks ` + .. grid:: 2 :gutter: 1 @@ -73,7 +87,7 @@ If installation didn't work, see the :ref:`troubleshooting section Date: Thu, 29 Feb 2024 14:39:58 +0100 Subject: [PATCH 3/6] add carousel --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index b41e49ad1f..8d7d35a84e 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -26,6 +26,7 @@ seaborn>=0.12.2 sphinx>=6.2.1 sphinx_autobuild>=2021.3.14 sphinx-copybutton>=0.5.2 +sphinx-carousel sphinx-notfound-page>=0.8.3 sphinx-design>=0.4.1 sphinx-gallery>=0.13.0 From 65280dc363e0c0a392a750744b101e886166e6c3 Mon Sep 17 00:00:00 2001 From: jessica-mitchell Date: Mon, 4 Mar 2024 13:17:00 +0100 Subject: [PATCH 4/6] Update doc/htmldoc/installation/cmake_options.rst Co-authored-by: Hans Ekkehard Plesser --- doc/htmldoc/installation/cmake_options.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/htmldoc/installation/cmake_options.rst b/doc/htmldoc/installation/cmake_options.rst index 8e919d627a..4eac73bd60 100644 --- a/doc/htmldoc/installation/cmake_options.rst +++ b/doc/htmldoc/installation/cmake_options.rst @@ -104,7 +104,7 @@ Build documentation If either documentation build is toggled to `ON`, you can then run ``make docs`` if you only want to build the docs. -See also the :ref:`documentation workflow ` for user facing and technical docs. +See also the :ref:`documentation workflow ` for user-facing and technical docs. External libraries From 7fca951be8fde544bea48e0222c1e7d78132f03a Mon Sep 17 00:00:00 2001 From: jessica-mitchell Date: Mon, 4 Mar 2024 13:22:03 +0100 Subject: [PATCH 5/6] Apply suggestions from code review Co-authored-by: Hans Ekkehard Plesser --- doc/htmldoc/installation/cmake_options.rst | 2 +- doc/htmldoc/installation/index.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/htmldoc/installation/cmake_options.rst b/doc/htmldoc/installation/cmake_options.rst index 4eac73bd60..7f3518decc 100644 --- a/doc/htmldoc/installation/cmake_options.rst +++ b/doc/htmldoc/installation/cmake_options.rst @@ -180,7 +180,7 @@ Generic build configuration | ``-Dwith-intel-compiler-flags=[OFF|]``| User defined flags for the Intel compiler | | | [default='-fp-model strict']. Separate multiple flags by ';'. | +------------------------------------------------------+------------------------------------------------------------------+ -| ``-Dwith-cpp-std=[]`` | C++ standard to use for compilation [default='c++11']. | +| ``-Dwith-cpp-std=[]`` | C++ standard to use for compilation [default='c++17']. | +------------------------------------------------------+------------------------------------------------------------------+ | ``-Dwith-libraries=[OFF|]`` | Link additional libraries [default=OFF]. Give full path. Separate| | | multiple libraries by ';'. | diff --git a/doc/htmldoc/installation/index.rst b/doc/htmldoc/installation/index.rst index c81f4d4d10..a8c5e1f863 100644 --- a/doc/htmldoc/installation/index.rst +++ b/doc/htmldoc/installation/index.rst @@ -39,7 +39,7 @@ Install NEST .. image:: https://nest-simulator.org/TryItOnEBRAINS.png :target: https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fnest%2Fnest-simulator-examples&urlpath=lab%2Ftree%2Fnest-simulator-examples%2Fnotebooks%2Fnotebooks%2Fone_neuron.ipynb&branch=main - For more info see :ref:`our guide to running notebooks ` + For more info see :ref:`our guide to running Jupyter notebooks on EBRAINS ` .. grid:: 2 :gutter: 1 From cc9bc22bc12557d6d1eeed4e020c7888e39f6813 Mon Sep 17 00:00:00 2001 From: Jessica Mitchell Date: Mon, 4 Mar 2024 20:13:12 +0100 Subject: [PATCH 6/6] ajust try it on ebrains buttons spacine --- doc/htmldoc/installation/index.rst | 5 +++-- doc/htmldoc/static/css/custom.css | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/htmldoc/installation/index.rst b/doc/htmldoc/installation/index.rst index a8c5e1f863..09f0185ce9 100644 --- a/doc/htmldoc/installation/index.rst +++ b/doc/htmldoc/installation/index.rst @@ -31,7 +31,7 @@ Install NEST :class-title: sd-d-flex-row sd-align-minor-center :columns: 4 - With the JupyterHub service from EBRAINS you can + With the JupyterHub service from EBRAINS, you can try out NEST (and many other tools) directly in your browser. .. rst-class:: imgbutton @@ -39,7 +39,8 @@ Install NEST .. image:: https://nest-simulator.org/TryItOnEBRAINS.png :target: https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fnest%2Fnest-simulator-examples&urlpath=lab%2Ftree%2Fnest-simulator-examples%2Fnotebooks%2Fnotebooks%2Fone_neuron.ipynb&branch=main - For more info see :ref:`our guide to running Jupyter notebooks on EBRAINS ` + + * For more info see :ref:`our guide to running Jupyter notebooks on EBRAINS ` .. grid:: 2 :gutter: 1 diff --git a/doc/htmldoc/static/css/custom.css b/doc/htmldoc/static/css/custom.css index ecf8ab157c..49b96cfaed 100644 --- a/doc/htmldoc/static/css/custom.css +++ b/doc/htmldoc/static/css/custom.css @@ -97,11 +97,12 @@ section#kernel-attributes-nest-nestmodule dd { outline-color: lightgray !important; outline-style: solid !important; outline-width: 1px !important; + padding-right: 1px !important; + padding-right: 1px !important; padding-top: 20px !important; padding-bottom: 20px !important; box-shadow: 3px 3px lightgray !important; } - .imgbutton:hover { background-color: white;