Giter VIP home page Giter VIP logo

2020-website's Introduction

PyConline AU 2020 website

To build this website, you will need the following:

Then:

  • Run poetry install. Poetry will create a virtualenv for you.
  • Run yarn install.
  • Run poetry run supervisord. Supervisor will start up the two processes you'll need for local development: parcel (to build frontend static assets) and statik (to build the site itself).

From there, the Statik documentation will be the place to look for most things.

Deployment is automated, and runs on Netlify; see the netlify.toml for details. When you file a pull request against this repo, Netlify will build the site (provided the original branch is also inside this repo; sorry, folks outside the core team). A "check" will come up with the name deploy/netlify; click Details next to it to go to the preview for that PR.

Timezones!

It turns out that, regrettably, the world does not run entirely on the Australia/Adelaide timezone. To accommodate those who insist on using whole-hour UTC offsets, all times should be written like this:

<time datetime="2020-07-16T08:30+09:30">Thursday 16 July, 8:30am ACST</time>

The site has some JavaScript that will pick this up, and if the user's timezone differs from the one in the timestamp, append the local time. (For instance, they might see Thursday 16 July, 8:30am ACST (9:00am AEST) or Thursday 16 July, 8:30am ACST (Wed, 7:00pm ET).)

This works in HTML and Markdown (since Markdown can have arbitrary HTML in most places).

Note that the colon between the offset hours and minutes must be present (e.g. +0930 won't work)!

Local development issues

Are you on macOS Catalina and getting hundreds of API_UNAVAILABLE/clang issues when running poetry install?

Try this tip:

  • Check how many SDKs you have installed in /Library/Developer/CommandLineTools/SDKs.

  • If you have both MacOSX10.14.sdk and MacOSX10.15.sdk:

    rm -rf /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
    
  • Then try poetry install again.

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.