Skip to content

Commit

Permalink
Issuse 33: page restructure (#34)
Browse files Browse the repository at this point in the history
* Add: Lecture notes and assignments chapter

* Fix typos
  • Loading branch information
tordnat authored Dec 31, 2024
1 parent 29d0544 commit 590175d
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Assignment 1

We consider here a mass-damper-spring system as shown in the figure below.

.. figure:: figures/mass_damper_spring.svg
.. figure:: ../figures/mass_damper_spring.svg
:align: center

Schematic of the mass-damper-spring system.
Expand Down
9 changes: 9 additions & 0 deletions docs/assignments/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
============
Assignments
============


.. toctree::
:maxdepth: 1

assignment-1
21 changes: 21 additions & 0 deletions docs/figures/week-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 17 additions & 16 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ Welcome to Modelling and Simulation!


.. toctree::
:maxdepth: 1
:caption: Contents:

installation
jupyter-notebooks
sympy-and-cas
numerical-methods-for-odes
numerical-instability
simulation
rotations
reference-frames
assignment-1
quaternions
sympy-live
notation
bibliography
:maxdepth: 1
:caption: Contents:

installation
jupyter-notebook
sympy-and-cas
numerical-methods-for-odes
numerical-instability
simulation
rotations
reference-frames
quaternions
assignments/index
lecture-notes/index
sympy-live
notation
bibliography

About this website
===================
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Alternative 1: Miniconda
3. Install Visual Studio Code (VSCode) via `the download page <https://code.visualstudio.com/download>`_
4. Start VSCode and activate your newly created Python environment, ``ttk4130`` (See `this guide on python environments <https://code.visualstudio.com/docs/python/environments>`_)
5. Install the following list of VSCode extensions (See `this guide on managing VSCode extensions <https://code.visualstudio.com/docs/editor/extension-marketplace>`_): `Jupyter Extension <https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter>`_, `Python Extension <https://marketplace.visualstudio.com/items?itemName=ms-python.python>`_
6. Open or create a notebook file by opening the Command Palette (Ctrl+Shift+P) and select Jupyter: Create New Jupyter Notebook.
6. Open or create a notebook file by opening the Command Palette (Command+Shift+P) and select Jupyter: Create New Jupyter Notebook.

.. tab-item:: GNU/Linux
:sync: linux
Expand All @@ -64,7 +64,7 @@ Alternative 1: Miniconda
3. Install Visual Studio Code (VSCode) via `the download page <https://code.visualstudio.com/download>`_
4. Start VSCode and activate your newly created Python environment, ``ttk4130`` (See `this guide on python environments <https://code.visualstudio.com/docs/python/environments>`_)
5. Install the following list of VSCode extensions (See `this guide on managing VSCode extensions <https://code.visualstudio.com/docs/editor/extension-marketplace>`_): `Jupyter Extension <https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter>`_, `Python Extension <https://marketplace.visualstudio.com/items?itemName=ms-python.python>`_
6. Open or create a notebook file by opening the Command Palette (Command+Shift+P) and select Jupyter: Create New Jupyter Notebook.
6. Open or create a notebook file by opening the Command Palette (Ctrl+Shift+P) and select Jupyter: Create New Jupyter Notebook.

Troubleshooting
----------------
Expand Down
4 changes: 2 additions & 2 deletions docs/jupyter-notebooks.rst → docs/jupyter-notebook.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======================================
Quick intro to Jupyter Notebooks
Quick intro to Jupyter Notebook
=======================================

.. note::
Expand Down Expand Up @@ -74,7 +74,7 @@ There are special commands that only work in a Jupyter notebook environment. Mag

%lsmagic

You can list a cheat sheet with :code`quickref`
You can list a cheat sheet with :code:`quickref`

.. jupyter-execute::

Expand Down
8 changes: 8 additions & 0 deletions docs/lecture-notes/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
==============
Lecture Notes
==============

.. toctree::
:maxdepth: 1

week-0
6 changes: 6 additions & 0 deletions docs/lecture-notes/week-0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
============
Week 0
============

.. figure:: ../figures/week-0.svg
:align: center

0 comments on commit 590175d

Please sign in to comment.