Skip to content

Commit

Permalink
updating extensions for dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanasios Angeloudis authored and Athanasios Angeloudis committed Aug 27, 2024
1 parent 584f04d commit 51cddaa
Show file tree
Hide file tree
Showing 101 changed files with 2,260 additions and 220 deletions.
24 changes: 2 additions & 22 deletions _sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,7 @@ Contact
<a href="https://twitter.com/aangeloudis">@AAngeloudis</a>
.. container:: toggle2

.. container:: header

*Further information & links*


.. dropdown:: *Further information & links*

.. container :: leftside
Expand Down Expand Up @@ -217,11 +210,7 @@ Contact
<a href="https://github.com/thangel">Github </a>
.. container:: toggle2

.. container:: header

*Supporters & Partners*
.. dropdown:: *Supporters & Partners*


.. raw:: html
Expand All @@ -239,15 +228,6 @@ Contact

</center>

.. .. <a href="https://scholar.google.com/citations?user=omIi6Z8AAAAJ&hl=en&authuser=1"> <image style="height: 50px; filter: invert(7%) sepia(97%) saturate(5749%) hue-rotate(359deg) brightness(94%) contrast(86%); padding:10px" src="_static/solid/user-graduate.svg"> </a>
.. .. image:: support/ukri.png
.. :align: center
.. :height: 50 px
.. .. image:: support/uoe.png
.. :align: center
.. :height: 50 px

.. toctree::
:titlesonly:
Expand Down
13 changes: 3 additions & 10 deletions _sources/opportunities.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
Opportunities
-------------

.. container:: toggle2

.. container:: header

*Current Opportunities*
.. dropdown:: *Current Opportunities*
:open:


- **I welcome applications for PhD applicants at The University of Edinburgh for research on Offshore, Coastal and Estuarine engineering**.
Expand All @@ -32,11 +29,7 @@ Opportunities
.. The funding is sourced from The University of Edinburgh and is available for UK/EU candidates. If you are interested to know more, feel free to contact me by `email`_.
.. container:: toggle2

.. container:: header

*PhD Applicants*
.. dropdown:: *PhD Applicants*

If you wish to study for a PhD and/or attain a studentship at the University of Edinburgh, the first step to join our team is to apply `online <www.eng.ed.ac.uk/postgraduate/research/apply>`_. During the application process, you will be asked to prepare a research proposal together with the further documentation regarding your background. During this process you will have to specify your preferred supervisor.

Expand Down
73 changes: 43 additions & 30 deletions _sources/research.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ Projects
**Active projects**


.. container:: toggle2

.. container:: header

*EC H2020 ILIAD*
.. dropdown:: *EC H2020 ILIAD*
:open:

\

Expand All @@ -39,16 +36,48 @@ Projects
</center>
**Completed projects**
.. dropdown:: *The Thetis project*



A list of completed projects is outlined below
.. only:: html

.. sidebar:: Current development status

|thetisbuild|

.. container:: toggle
Thetis source code is hosted on `Github
<https://github.com/thetisproject/thetis/>`__ and is being
continually tested using GitHub Actions.

.. container:: header
.. |thetisbuild| image:: https://github.com/thetisproject/thetis/actions/workflows/build.yml/badge.svg
:target: https://github.com/thetisproject/thetis/actions/workflows/build.yml

*EPSRC FlexiFund FASTWATER* (2021-2022)

Thetis is an unstructured grid coastal ocean model built using the
`Firedrake <http://www.firedrakeproject.org/>`__ finite element framework.
Currently Thetis consists of 2D depth averaged and full 3D baroclinic models.

Some example animations are shown below. More animations can be found in the
`Youtube channel <https://www.youtube.com/channel/UC0FYtpH1unCy_qcoI46CnRA>`__.

Thetis is brought to you by the `Finnish Meteorological Institute <https://en.ilmatieteenlaitos.fi/>`_,
the `Institute for Infrastructure and Environment <https://www.eng.ed.ac.uk/research/institutes/iie>`_
at `University of Edinburgh <https://www.ed.ac.uk/>`_
and the departments of
`Computing <http://www.imperial.ac.uk/computing/>`_,
`Mathematics <http://www3.imperial.ac.uk/mathematics>`_, and
`Earth Science and Engineering <http://www.imperial.ac.uk/ese/>`_ at
`Imperial College London <http://www3.imperial.ac.uk>`_.

More details can be found at the dedicated `Thetis <https://thetisproject.org/>`__ page

**Completed projects**


A list of completed projects is outlined below

.. dropdown:: *EPSRC FlexiFund FASTWATER* (2021-2022)

\

Expand All @@ -67,11 +96,7 @@ A list of completed projects is outlined below
</center>
.. container:: toggle

.. container:: header

*UKRI/NERC Industrial Innovation Fellowship on tidal energy* (2018-2021)
.. dropdown:: *UKRI/NERC Industrial Innovation Fellowship on tidal energy* (2018-2021)

\

Expand Down Expand Up @@ -116,11 +141,7 @@ Research
.. container:: toggle

.. container:: header

*Marine renewable energy*
.. dropdown:: *Marine renewable energy*

\

Expand Down Expand Up @@ -183,11 +204,7 @@ Research
For example, the animations present hydrodynamics simulations from the `Thetis <http://thetisproject.org/>`_ software, as adapted for the simulation of tidal range power plant operation, building on the existing tidal stream array optimisation capabilities.

.. container:: toggle

.. container:: header

*Water treatment hydrodynamics*
.. dropdown:: *Water treatment hydrodynamics*

\

Expand Down Expand Up @@ -233,11 +250,7 @@ Research
.. container:: toggle

.. container:: header

*Environmental fluid mechanics*
.. dropdown:: *Environmental fluid mechanics*

The common factor between the application-focused streams outlined above is the application and development of numerical models that can be extended to more fundamental or generalised engineering applications.
Recent examples include studies on the formation of depth-averaged vortices in oscillatory flows through inlets, the turbulent flow past bluff bodies and simple geometries.
Expand Down
20 changes: 4 additions & 16 deletions _sources/teaching.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sphinx-quickstart on Fri May 18 18:18:29 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. only:: html
.. _email: mailto: [email protected]

Expand All @@ -12,11 +12,7 @@ Teaching
This section summarises teaching responsibilities within the Discipline of Civil & Environmental Engineering.


.. container:: toggle

.. container:: header

*Hydraulic Engineering IV*
.. dropdown:: *Hydraulic Engineering IV*

.. container :: note2
Expand All @@ -25,11 +21,7 @@ This section summarises teaching responsibilities within the Discipline of Civil
*Hydraulic Engineering IV* is a 4th year undergraduate civil engineering module on unsteady flows. I deliver material on open channel flows and hydraulic transients in pipe systems. Specifically, the content covers specifically flood routing, St Venant Equations, Solitary Waves, Surges and Coastal Waves and the Water Hammer phenomenon. `Course Website <http://www.drps.ed.ac.uk/18-19/dpt/cxcive10006.htm>`_


.. container:: toggle

.. container:: header

*Water Engineering, Transport & Treatment III*
.. dropdown:: *Water Engineering, Transport & Treatment III*

.. container :: note2
Expand All @@ -43,11 +35,7 @@ Educational Resources

General information on the broader themes that relate to our research activities.

.. container:: toggle2

.. container:: header

*Tidal Energy Open Educational Resource*
.. dropdown:: *Tidal Energy Open Educational Resource*

.. container :: note2
Expand Down
20 changes: 4 additions & 16 deletions _sources/team.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ Research Team
=============


.. container:: toggle2

.. container:: header

*Research Group*

.. dropdown:: *Research Group*
:open:

**Postdoctoral Researchers**

Expand All @@ -38,11 +34,7 @@ Research Team

- **Emils Brazovskis** - PhD researcher (2022 - Present), Institute for Infrastructure & Environment, University of Edinburgh - Co-Supervised with `Prof Lindsay Beevers <https://www.eng.ed.ac.uk/about/people/professor-lindsay-beevers>`_.

.. container:: toggle2

.. container:: header

*Alumni*
.. dropdown:: *Alumni*

- **Dr Misha Patel** - DPhil Researcher (2020 - 2024) - The Impact of Real World Constraints on Tidal Stream Energy Resource Assessments, University of Oxford.

Expand All @@ -54,11 +46,7 @@ Research Team



.. .. container:: toggle
.. .. container:: header
.. *Academic Collaborators*
.. .. dropdown:: *Academic Collaborators*
.. - `Prof Matthew Piggott <https://www.imperial.ac.uk/people/m.d.piggott>`_, Professor of Computational Geoscience and Engineering, Department of Earth Science & Engineering, Imperial College London.
.. - `Prof Thorsten Stoesser <https://iris.ucl.ac.uk/iris/browse/profile?upi=TSTOE28>`_, Professor of Civil Engineering Fluids, Department of Civil & Environmental Engineering, University College London.
Expand Down
2 changes: 1 addition & 1 deletion _sources/tidal/tidal_oer_range_technologies.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Beyond physical constraints, the capital cost and uncertainty over the environme

* Socio-economics and public perception

Tidal range power plants are typically classed as large infrastructure projects situated in coastal and estuarine zones. Proposed designs must accordingly balance and acknowledge the multiple uses of the marine space for economic, social and recreational purposes. As such, feasibility is not merely dictated by maximising the energy extraction or profit from a site, but also the need to demonstrate the scheme's acceptability relative to other uses of the same marine space occupied by the impoundment. Proponents of tidal range projects highlight the vast long-term and low-maintenance marine energy resource offered, as well as the substantial employment and regeneration opportunities presented. Nonetheless, a key factor for public acceptability regards the impact of a scheme on the local environment. Addressing this issue for marine infrastructure has been integrated into planning law. An example of this is the EU's `Marine Strategy Framework Directive (MSFD) <"https://ec.europa.eu/environment/marine/eu-coast-and-marine-policy/marine-strategy-framework-directive/index_en.htm">`_ that aims to protect the marine environment across Europe.
Tidal range power plants are typically classed as large infrastructure projects situated in coastal and estuarine zones. Proposed designs must accordingly balance and acknowledge the multiple uses of the marine space for economic, social and recreational purposes. As such, feasibility is not merely dictated by maximising the energy extraction or profit from a site, but also the need to demonstrate the scheme's acceptability relative to other uses of the same marine space occupied by the impoundment. Proponents of tidal range projects highlight the vast long-term and low-maintenance marine energy resource offered, as well as the substantial employment and regeneration opportunities presented. Nonetheless, a key factor for public acceptability regards the impact of a scheme on the local environment. Addressing this issue for marine infrastructure has been integrated into planning law. An example of this is the EU's `Marine Strategy Framework Directive (MSFD) <"https://environment.ec.europa.eu/topics/marine-environment_en">`_ that aims to protect the marine environment across Europe.


Assessment and optimisation
Expand Down
101 changes: 101 additions & 0 deletions _sphinx_design_static/design-tabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
// @ts-check

// Extra JS capability for selected tabs to be synced
// The selection is stored in local storage so that it persists across page loads.

/**
* @type {Record<string, HTMLElement[]>}
*/
let sd_id_to_elements = {};
const storageKeyPrefix = "sphinx-design-tab-id-";

/**
* Create a key for a tab element.
* @param {HTMLElement} el - The tab element.
* @returns {[string, string, string] | null} - The key.
*
*/
function create_key(el) {
let syncId = el.getAttribute("data-sync-id");
let syncGroup = el.getAttribute("data-sync-group");
if (!syncId || !syncGroup) return null;
return [syncGroup, syncId, syncGroup + "--" + syncId];
}

/**
* Initialize the tab selection.
*
*/
function ready() {
// Find all tabs with sync data

/** @type {string[]} */
let groups = [];

document.querySelectorAll(".sd-tab-label").forEach((label) => {
if (label instanceof HTMLElement) {
let data = create_key(label);
if (data) {
let [group, id, key] = data;

// add click event listener
// @ts-ignore
label.onclick = onSDLabelClick;

// store map of key to elements
if (!sd_id_to_elements[key]) {
sd_id_to_elements[key] = [];
}
sd_id_to_elements[key].push(label);

if (groups.indexOf(group) === -1) {
groups.push(group);
// Check if a specific tab has been selected via URL parameter
const tabParam = new URLSearchParams(window.location.search).get(
group
);
if (tabParam) {
console.log(
"sphinx-design: Selecting tab id for group '" +
group +
"' from URL parameter: " +
tabParam
);
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam);
}
}

// Check is a specific tab has been selected previously
let previousId = window.sessionStorage.getItem(
storageKeyPrefix + group
);
if (previousId === id) {
// console.log(
// "sphinx-design: Selecting tab from session storage: " + id
// );
// @ts-ignore
label.previousElementSibling.checked = true;
}
}
}
});
}

/**
* Activate other tabs with the same sync id.
*
* @this {HTMLElement} - The element that was clicked.
*/
function onSDLabelClick() {
let data = create_key(this);
if (!data) return;
let [group, id, key] = data;
for (const label of sd_id_to_elements[key]) {
if (label === this) continue;
// @ts-ignore
label.previousElementSibling.checked = true;
}
window.sessionStorage.setItem(storageKeyPrefix + group, id);
}

document.addEventListener("DOMContentLoaded", ready, false);
1 change: 1 addition & 0 deletions _sphinx_design_static/sphinx-design.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 51cddaa

Please sign in to comment.