Coder Social home page Coder Social logo

ceb8 / learn-astropy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from astropy/learn-astropy

0.0 0.0 0.0 674 KB

The Learn Astropy homepage

Home Page: https://learn.astropy.org

License: BSD 3-Clause "New" or "Revised" License

Shell 0.30% JavaScript 82.48% Python 17.21%

learn-astropy's Introduction

Astropy Learn

This repository hosts the homepage of the Astropy Learn project, https://learn.astropy.org and serves the content from the astropy-tutorials repository. The site itself is built with Gatsby and the Algolia search service. Records for the Algolia database are curated and formatted by the learn-astropy-librarian app.

Developer guide

Initial set up

Create a fork on https://github.com/astropy/learn.

npm install

Run a development server

You can run a development server that will serve the site and reload as you develop the app:

npm run develop

By default the app is hosted at http://localhost:8000. You can also interact with the GraphQL data layer by browsing

Build for production

npm run build

Preview the built site by running:

npm run serve

Linting and autoformatting

This app uses ESLint to lint JavaScript, which in turn runs Prettier to format JavaScript. The configuration is based on wesbos/eslint-config-wesbos.

A Git pre-commit hooks runs both ESLint and Prettier and automatically lints and reformats code before every commit. These hooks are run by husky and should already be installed when you ran npm install.

To manually lint the code base:

npm run lint

To also fix issues and format the code base:

npm run lint:fix

Ideally your editor will also apply eslint/prettier on save, though these commands are handy as a fallback.

About the node version

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

Additional resources for developers

Learn more about Gatsby:

Learn more about Algolia:

learn-astropy's People

Contributors

jonathansick avatar adrn avatar klieret avatar dependabot[bot] avatar bhavyat-135 avatar eteq avatar kelle avatar

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.