Giter Club home page Giter Club logo

help_pages's Introduction

The PythonAnywhere Help Pages

This repo contains the source files for help.pythonanywhere.com. They are stored in markdown format and converted to html by the Nikola static site generator. Individual help pages can be found in the "articles" folder.

Pull requests are welcome! The only page for which we can't accept them are the API docs, which are auto-generated from our code -- if you find a problem with them, then you can let us know by raising an issue on the GitHub repository.

(for PA developers): pushing changes to live

A post-receive hook will take care of the nikola build and deploy

git remote add live-site [email protected]:/home/help/barerepo.git
# you'll probably want to add your public key to help's authorized_keys
git push live-site master

generating the help pages manually

The sources, if you need to rebuild manually are in /var/www/nikola-sources

For whatever reason...

workon nikola
nikola build
nikola deploy  # nb this has a hard-coded path to a static files directory for the web app, so don't run it on your own pc

Git stuff

The git post-receive hook (in /home/help/barerepo.git/hooks), in case it gets killed is:

#!/bin/bash
export GIT_WORK_TREE=/var/www/nikola-sources
mkdir -p $GIT_WORK_TREE
git checkout -f
echo "begin nikola build: "`date` >> /home/help/deploy-log.txt
cd $GIT_WORK_TREE
/home/help/.virtualenvs/nikola/bin/nikola check --clean-files
rm -f output/assets/js/tipuesearch_content.json
/home/help/.virtualenvs/nikola/bin/nikola build
/home/help/.virtualenvs/nikola/bin/nikola deploy
echo "deploy completed: "`date` >> /home/help/deploy-log.txt

help_pages's People

Contributors

gpjt avatar hjwp avatar conradho avatar pythonanywherefts avatar caseneuve avatar filiplajszczak avatar 2x2xplz avatar dependabot[bot] avatar dullbananas avatar gregkaleka avatar rdil avatar sputtering avatar windsooon avatar tobex001 avatar deeptikorwar avatar jdemonasterio avatar thomasbooij95 avatar rogererens avatar sharpchris avatar suhailvs avatar ralstonia avatar rafascar avatar mooseyboots avatar gottagofaster236 avatar amooabeebadesina avatar willemhendriks avatar hendrikvandeput avatar nilsrg avatar nicozanf avatar mikemyl 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.