Skip to content

Commit 996ec08

Browse files
FEAT: Improvements throughout ✏️
1 parent 3676c05 commit 996ec08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3476
-858
lines changed

.github/workflows/sync-to-readthedocs-repo.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- main
88
- latest
99
- 'pre/*'
10-
- dario/quick_patches_pre/2.6
1110
workflow_dispatch:
1211
inputs:
1312
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ pip-log.txt
102102

103103
# Sphinx documentation
104104
_docs
105+
_autosummary
105106

106107
# Spyder project settings
107108
.spyderproject

.pre-commit-config.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,4 @@ repos:
99
rev: "v0.1.5"
1010
hooks:
1111
- id: ruff
12-
args: [ --fix ]
13-
14-
- repo: https://github.com/codespell-project/codespell
15-
rev: v2.2.6
16-
hooks:
17-
- id: codespell
18-
args: [ --exclude-file=poetry.lock ]
19-
additional_dependencies:
20-
- tomli
12+
args: [ --fix ]

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
- `tidy3d.plugins.design` tool to explore user-defined design spaces.
1010
- `ModeData.dispersion` and `ModeSolverData.dispersion` are calculated together with the group index.
1111
- A utility function `td.medium_from_nk()` that automatically constructs a dispersivless medium when permittivity>=1, and a single-pole Lorentz medium when permittivity<1.
12+
- Integration of the `documentation` alongside the main codebase repository.
13+
- Integration of the `tidy3d-notebooks` repository.
14+
- `tidy3d develop` CLI and development guide on the main documentation.
1215

1316
### Changed
17+
- `poetry` based installation. Removal of `setup.py` and `requirements.txt`.
18+
- Upgrade to sphinx 6 for the documentation build, and change of theme.
1419

1520
### Fixed
1621

@@ -805,12 +810,12 @@ which fields are to be projected is now determined automatically based on the me
805810
### Added
806811

807812
- New `grid_spec` Field in `Simulation` that allows more flexibility in defining the mesh.
808-
- `GridSpec1d` class defining how the meshing along each dimension should be done, with sublcasses `UniformGrid` and `CustomGrid` that cover the functionality
813+
- `GridSpec1d` class defining how the meshing along each dimension should be done, with subclasses `UniformGrid` and `CustomGrid` that cover the functionality
809814
previously offered by supplying a float or a list of floats to `Simulation.grid_size`. New functionality offered by `AutoGrid` subclass, with the
810815
mesh automatically generated based on the minimum required steps per wavelength.
811816
- New `PointDipole` source.
812817
- Opacity kwargs for monitor and source in `sim.plot`.
813-
- Separated `plotly`-based requirements from core requrements file, can be added with `"pip install tidy3d-beta[plotly]"`.
818+
- Separated `plotly`-based requirements from core requirements file, can be added with `"pip install tidy3d-beta[plotly]"`.
814819

815820
### Changed
816821
- `Simulation.grid_spec` uses the default `GridSpec`, which has `AutoGrid(min_steps_per_wvl=10)` in each direction. To initialize a `Simulation` then it is no
@@ -952,7 +957,7 @@ which fields are to be projected is now determined automatically based on the me
952957
- PML parameters and padding Grid with pml pixels by [@momchil-flex](https://github.com/momchil-flex) in #64
953958
- Documentation by [@tylerflex](https://github.com/tylerflex) in #63
954959
- Gds import from [@tylerflex](https://github.com/tylerflex) in #69
955-
- Loggin by [@tylerflex](https://github.com/tylerflex) in #70
960+
- Logging, by [@tylerflex](https://github.com/tylerflex) in #70
956961
- Multi-pole Drude medium by [@weiliangjin2021](https://github.com/weiliangjin2021) in #73
957962
- Mode Solver: from [@tylerflex](https://github.com/tylerflex) in #74
958963
- Near2Far from [@tylerflex](https://github.com/tylerflex) in #77

docs/_static/css/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ iframe {width: 100%;border: unset}
2626

2727
.toctree-wrapper li[class^=toctree-l1]>a {font-size: 1.4em; text-decoration: none}
2828
.toctree-wrapper li[class^=toctree-l2]>a {font-size: 1em; text-decoration: none}
29+
.toctree-wrapper li[class^=toctree-l3]>a {font-size: 0.9em; text-decoration: none}
30+
.toctree-wrapper li[class^=toctree-l4]>a {font-size: 0.9em; text-decoration: none}
2931

3032
html[data-theme="light"] {
3133
--pst-color-primary: #b5445b;
@@ -79,6 +81,10 @@ img {
7981
background-color: var(--sd-color-info-bg);
8082
}
8183

84+
html[data-theme=dark] .dataframe {
85+
background-color: var(--pst-color-primary);
86+
}
87+
8288
/* TODO make sure this is only for the API tables */
8389
/*table {*/
8490
/* border: solid;*/

docs/api/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
***
2-
API
3-
***
1+
***************
2+
API |:computer:|
3+
***************
44

55
.. toctree::
66
:hidden:

docs/api/plugins/design.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Design Space Exploration
44
------------------------
55

6+
.. mdinclude:: ../../tidy3d/plugins/design/README.md
7+
68
.. autosummary::
79
:toctree: ../_autosummary/
810
:template: module.rst

docs/changelog.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Changelog
2-
=========
1+
********************
2+
Changelog |:rewind:|
3+
********************
34

4-
.. mdinclude:: ../../CHANGELOG.md
5+
.. mdinclude:: ../CHANGELOG.md

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"IPython.sphinxext.ipython_directive",
8181
"IPython.sphinxext.ipython_console_highlighting",
8282
"nbsphinx", # Integrate Jupyter Notebooks and Sphinx
83+
"m2r2",
8384
# "sphinxcontrib.divparams", # TODO FIX
8485
"sphinx.ext.autodoc", # Core Sphinx library for auto html doc generation from docstrings
8586
"sphinx.ext.autosummary", # Create neat summary tables for modules/classes/methods etc

docs/development/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
*****************
2-
Development Guide
3-
*****************
1+
********************************************************************
2+
Development Guide |:hammer_and_wrench:|
3+
********************************************************************
44

55
Welecome to the ``tidy3d`` developers guide! These are just some recommendations I've compiled, but we can change anything as we think might help the development cycle more.
66

0 commit comments

Comments
 (0)