Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SkandanC committed Dec 12, 2022
1 parent 51a17dd commit 288aa3b
Show file tree
Hide file tree
Showing 12 changed files with 414 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Sphinx docs to gh-pages

on:
push:
branches:
- main
workflow_dispatch:

jobs:
sphinx_docs_to_gh-pages:
runs-on: ubuntu-latest
name: Sphinx docs to gh-pages
steps:
- name: Cancel Workflow Action
uses: styfle/[email protected]
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.10"
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: anaconda-client-env
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Installing the library
shell: bash -l {0}
run: |
pip install -r requirements.txt
sudo wget https://github.com/jgm/pandoc/releases/download/1.16.0.2/pandoc-1.16.0.2-1-amd64.deb
sudo dpkg -i pandoc-1.16.0.2-1-amd64.deb
#sudo apt install pandoc
python3 -m pip install sphinx
pip install myst_parser
- name: Running the Sphinx to gh-pages Action
uses: uibcdf/[email protected]
with:
branch: main
dir_docs: bootcamp
sphinxopts: ""
129 changes: 129 additions & 0 deletions .gitignore copy
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
21 changes: 21 additions & 0 deletions LICENSE copy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 CamachoLab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Photonics-Bootcamp
The CamachoLab Photonics Bootcamp, with support from Google.
32 changes: 32 additions & 0 deletions bootcamp/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Book settings
# Learn more at https://jupyterbook.org/customize/config.html

title: Google Photonics Bootcamp
author: CamachoLab and Google
logo: logo.png

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force

# Define the name of the latex output file for PDF builds
latex:
latex_documents:
targetname: book.tex

# Add a bibtex file so that we can create citations
bibtex_bibfiles:
- references.bib

# Information about where the book exists on the web
repository:
url: https://github.com/BYUCamachoLab/sky130ph # Online location of your book
path_to_book: bootcamp # Optional path to your book, relative to the repository root
branch: master # Which branch of the repository should be used when creating links (optional)

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
use_issues_button: true
use_repository_button: true
58 changes: 58 additions & 0 deletions bootcamp/_toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Table of contents
# Learn more at https://jupyterbook.org/customize/toc.html

format: jb-book
root: intro
parts:
- caption: Introduction
chapters:
- file: pages/introduction
- caption: PDK
chapters:
- file: pages/what_is_a_pdk
- file: pages/gds
- file: pages/components
- file: common_components
sections:
- file: pages/waveguides
- file: pages/y_junctions
- file: pages/directional_couplers
- file: pages/ring_resonators
- file: pages/tapers
- file: pages/mmis
- file: pages/grating_couplers
- file: pages/edge_couplers
- file: pages/phase_shifters_heaters
- file: pages/voas
- file: pages/subcircuits
- caption: Designing Circuits
chapters:
- file: pages/the_mach_zehnder_interferometer
- file: pages/design_for_testing
- file: pages/layout
- caption: Testing
chapters:
- file: pages/equipment
- file: pages/sweeps
- file: pages/analyzing_circuits
- caption: Software References
chapters:
- file: pages/computer_setup
- file: pages/git_and_github
- file: pages/vs_code
- file: pages/makefiles
- file: pages/cmake
- file: pages/python_environments_and_conda
- file: pages/open_source
- file: pages/git_and_github
- file: pages/klayout
- file: pages/gdsfactory
- file: pages/meep
- file: pages/cookiecutter
- caption: Other References
numbered: false
chapters:
- url: https://github.com/BYUCamachoLab/sky130ph
title: Repository
- url: https://github.com/BYUCamachoLab/sky130ph/docs
title: PDK Documentation
14 changes: 14 additions & 0 deletions bootcamp/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Welcome to your the Google Photonics Bootcamp

This bootcamp is intended for those with experience in electrical engineering
but are interested in learning about designing integrated photonic circuits and
their applications.

This course was created as a collaboration between
[CamachoLab at Brigham Young University](https://camacholab.byu.edu/) and
[Google's Skywater Project](https://skywater-pdk.readthedocs.io/en/main/).

## Contents

```{tableofcontents}
```
Binary file added bootcamp/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions bootcamp/markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Markdown Files

Whether you write your book's content in Jupyter Notebooks (`.ipynb`) or
in regular markdown files (`.md`), you'll write in the same flavor of markdown
called **MyST Markdown**.
This is a simple file to help you get started and show off some syntax.

## What is MyST?

MyST stands for "Markedly Structured Text". It
is a slight variation on a flavor of markdown called "CommonMark" markdown,
with small syntax extensions to allow you to write **roles** and **directives**
in the Sphinx ecosystem.

For more about MyST, see [the MyST Markdown Overview](https://jupyterbook.org/content/myst.html).

## Sample Roles and Directives

Roles and directives are two of the most powerful tools in Jupyter Book. They
are kind of like functions, but written in a markup language. They both
serve a similar purpose, but **roles are written in one line**, whereas
**directives span many lines**. They both accept different kinds of inputs,
and what they do with those inputs depends on the specific role or directive
that is being called.

Here is a "note" directive:

```{note}
Here is a note
```

It will be rendered in a special box when you build your book.

Here is an inline directive to refer to a document: {doc}`markdown-notebooks`.


## Citations

You can also cite references that are stored in a `bibtex` file. For example,
the following syntax: `` {cite}`holdgraf_evidence_2014` `` will render like
this: {cite}`holdgraf_evidence_2014`.

Moreover, you can insert a bibliography into your page with this syntax:
The `{bibliography}` directive must be used for all the `{cite}` roles to
render properly.
For example, if the references for your book are stored in `references.bib`,
then the bibliography is inserted with:

```{bibliography}
```

## Learn more

This is just a simple starter to get you started.
You can learn a lot more at [jupyterbook.org](https://jupyterbook.org).
Loading

0 comments on commit 288aa3b

Please sign in to comment.