Git Product home page Git Product logo

www_lsst_io's Introduction

image

https://www.lsst.io is a portal for Rubin Observatory technical documentation. It's designed to help Rubin Observatory staff and the astronomy community discover documentation, software, and other bits of technical information produced by the Rubin Observatory and LSST.

Technical stack

Development workflow primer

Node version

The Node.js version used This project is intended to be built with a Node.js version that's encoded in the .nvmrc file. To adopt this node version, we recommend installing and using the node version manager.

Then you can use the preferred node version by running nvm from the project root:

nvm use

Install locally

Install the JavaScript packages:

npm install .

Start the development server

gatsby develop

View the site at http://localhost:8000.

Also view the GraphiQL playground at http://localhost:8000/___graphql to explore the site's data layer.

Install pre-commit hooks

You can automatically lint and format code using pre-commit hooks.

First, install pre-commit in an isolated virtual environment:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install pre-commit
pre-commit install

After this initialization step, you can re-activate the hooks in the virtual environment:

source .venv/bin/activate

Manual linting and formatting

You can also manually lint and format code.

Lint JavaScript:

npm run lint

Lint and auto-format JavaScript (powered by Prettier):

npm run lint:fix

Format other types of code with Prettier:

npm run format

Create a production build

gatsby build

This build static HTML and optimized per-route JavaScript code bundles.

You can serve the production build locally:

gatsby serve

Project layout

Here are the important files and directories:

licenses/

This directory contains licenses for third-party code that is vendored by this project (such as the license for the Gatsby starter files).

node_modules/

This directory contains npm packages, as defined by package.json / package-lock.json. This directory isn't maintained in Git.

src/

This directory contains all the front-end code for www.lsst.io itself.

.pre-commit-config.yaml

Pre-commit hooks that ensure code is correctly formatting and doesn't have any linting issues.

.prettierrc

This file configures Prettier, which automatically formats the codebase.

.prettierignore

This file lists files and directories that Prettier will not format.

gatsby-browser.js

This file is where we extend or customize Gatsby's default settings affecting the browser, through the Gatsby browser APIs.

gatsby-config.js

This is the main Gatsby configuration file. See the Gatsby config docs for details.

gatsby-node.js

This file is where we customize the build process using Gatsby Node APIs.

gatsby-ssr.js

This file is where we customize Gatsby's server-side rendering with the Gatsby SSR APIs.

LICENSE

This project is licensed under MIT, along with the sub-licenses listed in licenses/.

package-lock.json

A file is generated based on package.json and contains the exact version of npm dependencies.

pacakge.json

This file is the manifest for the Node.js project and contains the project's metadata and abstract dependencies.

www_lsst_io's People

Contributors

dependabot[bot] avatar jonathansick avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

www_lsst_io's Issues

sims packages doc links

Wow, so I just found the super nice browsing aspect of lsst.io (again).
I appreciate that sims packages are included in this page: https://www.lsst.io/simulations-guides/
but the simulations guides that are linked are obsolete (at least the packages are).
Could you just link to the rubin-sim.lsst.io pages instead? Is there anything we'd need to update/do on our end?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.