Skip to content

PyConTH/www

Repository files navigation

www

Conference website: https://th.pycon.org/

Netlify is watching this repo. When you push to it, the site will be built. For now, the URL is https://serene-mestorf-5c91d0.netlify.com/

Netlify also builds previews for pull requests. To see the preview, click on Details to the right of the deploy/netlify Deploy preview ready! notification on the pull request.

Contributing to the design

How to a add a new post

official way - https://getnikola.com/handbook.html#creating-a-blog-post

  1. Ensure you have a github account
  2. Go to https://github.com/PyConTH/www/tree/master/site/posts
  3. First check there is not a draft already for the post you want to make
    • If there is just edit to remove draft and update publish date
  4. Add two files in github. English and Thai
    • Click "Add new File".
    • Ensure you name X.en.rst and X.th.rst (or .md for markdown)
  5. Put metadata at the top of the file. min is title, slug, date
  6. Use these instructions for formatting text
  7. Copy the english text to the thaiversion ready for translation
  8. Commit new changes as "Create new branch and start a pull request"
  9. Wait for netlify check to finish and click "details" to see site preview
  10. Select "request review" and pick translator. Also contact them directly
  11. Translator will edit the empty translation file
  12. Request review of jean or djay to merge into site

How to edit a page on the website

  1. ...
  2. if not in the menu

Places to share a post

Get copy from old site

Go to https://github.com/PyConTH/www/tree/8f00bd93a86c30962479cfe4ebcb753080ca44ba

How to build

Note: You don't need to do this to edit the site

pip install --user -r requirements.txt
cd site
nikola build