Giter Site home page Giter Site logo

jean / www2020 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyconth/www2021

0.0 2.0 0.0 4.22 MB

Website for PyCon Thailand 2020

License: GNU Affero General Public License v3.0

Makefile 1.28% Python 3.42% Shell 0.06% JavaScript 37.05% CSS 18.01% HTML 40.18%

www2020's Introduction

Building the PyCon Thailand 2020 website

Deploy to Netlify

Deploying to https://th.pycon.org/

Local development

Install pelican

pip install -r requirements.txt

Run Pelican local server with automatic rebuild

pelican --autoreload --listen

Clone the repo and start a site

git clone www2020
cd www2020
# pelican-quickstart # Only necessary the first time, already done

Specify the theme to use

pelican-themes --symlink theme

Specify THEME = 'theme' in pelicanconf.py

Content editing

Create posts (listed chronologically) in Markdown format in ./content/. Create pages (about, programme, etc.) in ./content/pages/. Translations are specified using the lang metadata, see Translations for details.


Syncing content from Notion

This is work in progress, the building blocks are there but I haven't completed the config (API token, pages in Notion).

Content that is maintained in Notion doesn't need to be committed to git. In fact, committing it to git would probably just confuse things. So commit special pages, such as e.g. the frontpage if it has special layout, as e.g. ./content/pages/frontpage.html and enlist developer support in updating it.

In order to retrieve pages from Notion on your machine, install the API and configure the API key:

pip install --user notion
export NOTION_BLOG_POSTS_PAGE=https://www.notion.so/pyconth/News-08d5aa2f573348e1b96671488947f997
export NOTION_TOKEN=...

Grab the API key from your browser session (see https://github.com/jamalex/notion-py#quickstart).


TODO

  • Setup automatic sync.

www2020's People

Watchers

 avatar  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.