diff --git a/README.md b/README.md index e77934f..08222e3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Welcome and Installation Guide Welcome to the project! This is a Data Science Master's Capstone at Harvard University's Extension School, in collaboration with NOAA. -Please see here for project setup and installation: [Setup](docs/setup.md). +Please see here for project setup and installation: [Setup](https://noaa-hes-capstone.github.io/icedyno/setup/).

NOAA Logo diff --git a/docs/index.md b/docs/index.md index e15b0f9..051de54 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,41 +4,3 @@ Welcome to the project! This is a data science Master's capstone through Harvard University's Extension School, in collaboration with NOAA. - -## Documentation -Mkdocs is the documentation engine that takes hand-written markdown files to a project website. -Please read more at https://www.mkdocs.org/. - -Mkdocstrings is a mkdocs extension that allows autogenerated documentation to be made, by scraping type hints and documentation strings for any python modules within the project. - -### Building and serving the documentation commands - -* `mkdocs new [dir-name]` - Create a new project. -* `mkdocs serve` - Start the live-reloading docs server. -* `mkdocs build` - Build the documentation site. -* `mkdocs -h` - Print help message and exit. - -### Documentation files layout - - mkdocs.yml # The configuration file. - docs/ - index.md # The documentation homepage. - ... # Other markdown pages, images and other files. - -#### Add a new page or subpage -To add a new page, in `mkdocs.yml` add the page (or subpage) by: -``` -site_name: IceDyno Documentation - -nav: - - Home: index.md - - Setup: setup.md - - New Page: newpage.md - - New SubPage: newsubpage.md - - ... -``` - -#### Autogenerate documentation for an IceDyno module - -Add to a markdown file something like this: -`::: icedyno.preprocess` diff --git a/docs/setup.md b/docs/setup.md index 36bc017..dad8f5e 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -1,7 +1,10 @@ # Setup -To get started, clone the repo, checkout this branch, using Linux or Mac install pixi with: +To get started, clone the repo, checkout this branch, using Linux install pixi with: ```curl -fsSL https://pixi.sh/install.sh | bash``` +For Mac, install via homebrew with +```homebrew install pixi``` + If using windows, install pixi with: ```iwr -useb https://pixi.sh/install.ps1 | iex``` @@ -48,3 +51,43 @@ You'll see that the `pixi.toml` and `pixi.lock` files will change after adding y ## Removing a dependency ```pixi remove package_name``` + + +# Documentation +Mkdocs is the documentation engine that takes hand-written markdown files to a project website. +Please read more at https://www.mkdocs.org/. + +Mkdocstrings is a mkdocs extension that allows autogenerated documentation to be made, by scraping type hints and documentation strings for any python modules within the project. + +## Building and serving the documentation commands locally + +* `mkdocs new [dir-name]` - Create a new project. +* `mkdocs serve` - Start the live-reloading docs server. +* `mkdocs build` - Build the documentation site. +* `mkdocs -h` - Print help message and exit. + +## Documentation files layout + + mkdocs.yml # The configuration file. + docs/ + images/ # Folder for storing local images for documentation, including for the README.md. + index.md # The documentation homepage. + ... # Other markdown pages. + +### Add a new page or subpage +To add a new page, in `mkdocs.yml` add the page (or subpage) by: +``` +site_name: IceDyno Documentation + +nav: + - Home: index.md + - Setup: setup.md + - New Page: newpage.md + - New SubPage: newsubpage.md + - ... +``` + +### Autogenerate documentation for an IceDyno module + +Add to a markdown file something like this: +`::: icedyno.preprocess` \ No newline at end of file