Giter Club home page Giter Club logo

quansight-labs-site's Introduction

Quansight Labs Site

Deploy labs website

Netlify Status

Creating new posts

Use either reStructuredText, Markdown or Jupyter Notebooks. To create an empty post:

$ nikola new_post -f markdown  # default is .rst if not specified

Note that for Jupyter notebook posts the post metadata (title, author, slug, date) goes in the notebook metadata as documented here. Jupyter Lab does not have a metadata editor yet - either use Jupyter notebook, install https://github.com/yuvipanda/jupyterlab-nbmetadata (although that did not work in a first test), or edit the metadata by hand.

To not show the whole post but only the first bit and then read more ..., use <!-- TEASER_END --> (either in plain Markdown or in a Markdown cell in a notebook).

๐Ÿ“† Scheduling a post - internal content calendar

The future post schedule is available as a Google Spreadsheet accessible only to Quansight Employees, you can use it to lookup next free spot.

The website rebuilds itself everyday (look into the GitHub action Cron), thus if you set the date on the metadata of your post and merge the Pull-Request, the post will be published on given day.

The PR preview system does show Future blog post, so no need to put a fake date when issuing a PR.

๐Ÿ‘ท Build information

๐Ÿ Note that Netlify uses Python 3.8 to build and deploy the site.

To set up a development environment: in a new conda env or virtualenv:

$ pip install -r requirements.txt

Configuration file for the site is conf.py.

To build the site, and have it auto-update when you edit content:

nikola auto

๐Ÿš€ Deployment

Once you submit a Pull Request a build of the site will be triggered on Netlify. The Netlify bot will add a comment to your Pull Request with the link to the preview URL.

Screenshot of a Github Pull Request displaying the Netlify bot for website builds

If the build fails or you need to see more details about it click on the Show all checks link in the checks section and then click on Details to expand the list of checks and their full logs.

Screenshot of a GitHub Pull Request checks with the Details window expanded

:alarm_clock: In addition to automatic builds on merge requests, we use GitHub actions to trigger an automatic build of the site everyday at 10:37 UTC. So if you want to "schedule" posts the best way is to make sure the date in the post preamble is a couple of hours before the scheduled time:

date: 2021-10-07 10:00:00 UTC-07:00

quansight-labs-site's People

Contributors

asmeurer avatar carreau avatar ccordoba12 avatar costrouc avatar dalthviz avatar dependabot[bot] avatar dhavide avatar ericdatakelly avatar goanpeca avatar hameerabbasi avatar honno avatar isabela-pf avatar jaimergp avatar jrbourbeau avatar juanis2112 avatar koliphan2 avatar marsbarlee avatar mattip avatar melissawm avatar pearu avatar rgommers avatar saulshanabrook avatar scopatz avatar steff456 avatar thomasjpfan avatar tonyfast avatar trallard avatar v0dro avatar vfdev-5 avatar xmnlab avatar

Watchers

 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.