geany / www.geany.org

Main website
Other
14 stars 13 forks source link
django geany

www.geany.org

About

This is the website code for https://www.geany.org. It's based on Django and uses Mezzanine (https://mezzanine.jupo.org/, the coolest Django CMS) for content management.

Management And Maintenance

Admin Area

To enter the Django admin area, just open https://geany.org/admin/. In case you forgot your username and/or password or when it never had been set before, use the password reset form with your registered email address.

Set Latest Version on release time

When releasing Geany, the website should be updated as well. This is easily done by editing the version number at https://geany.org/admin/latest_version/latestversion/1/change/. After the latest version has been updated in the admin area, it may take a few minutes until cached contents have expired.

Afterwards, all references on the website where the version number is used, are up to date.

Deploy Content Changes from GIT to the website

To change any content on the website, find and edit the corresponding Markdown source file in this repository's page_content directory. The directories and files in therein represent the website page structure.

After you made your changes, commit and push the changed file(s) to GIT.

Then open https://geany.org/admin/mezzanine_sync_pages/mezzaninesyncpages/, check Execute "git pull" and press Sync Pages. Then the current website's pages are synced with the file contents in the GIT repository. For your convenience, after the sync has finished you are presented with an overview and diff of all made changes.

Please note, there is no dry-run, preview or rollback of the performed changes. Only the diff of the changes after they have been applied.

Special Pages

There are a few special pages which cannot be synced the way described above. This is because those pages are partially or completely rendered dynamically with non-static content.

Supported Markdown Extensions

There are a couple of Markdown extensions enabled for the website, mainly to support similar features like Github Flavored Markdown provides:

For details and usage instructions of the listed extensions, please see the documentation at https://facelessuser.github.io/pymdown-extensions/.

Page Content Management Commands

Deployment

To be able to deploy the code, you need a working SSH connection to the geany.org server. Obviously, this implies an user account on the server.

Using Fabric

To deploy the code the following steps are necessary:

Alternative Way (remote only)

You can also deploy the code to the website using a SSH shell on the server and perform the commands manually which would have been executed by Fabric otherwise.