Skip to content

macat/DQA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smartlinky

We all love well written docs. But it's not an easy task to produce such. How about letting people collaborate on this?

Project structure

  • smartlinky/ - web project
    • apps/ - django applications
    • docs/ - documentation
    • media/ - media files
  • smartlinky_extension/ - extension for Google Chrome

Deploy on Gondor.io

You can easily deploy it to Gondor.io service.

  1. go to web project root

  2. Set up your Gondor.io environment (you can find more information on Gondor.io help pages https://gondor.io/support/)

  3. Run deployment script:

    gondor deploy primary master

  4. Run generateplugin management script:

    gondor run primary generateplugin

Deploy on localhost

  1. go to web project root

  2. Install requirements:

    pip install requirements.pip

  3. Synchronize database:

    python ./manage.py syncdb

  4. Run your server:

    python ./manage.py runserver

  5. Run generateplugin management script:

    python ./manage.py generateplugin

Generate plugin

We use only one javascript file for our browser extension and embeddable script. We created a managemant command to generate this file. This file can be embedded on every documentation.

Therefore it's important to generate this file after the deployment.

The generation process uses 3 settings variables:

  • PLUGIN_FILES: The file paths, that are compiled to one file
  • PLUGIN_FILENAME: Filename of generated/compiled file
  • PLUGIN_CONFIG: Configuration for javascript code

The settings for the production environment can be found in settings.py.

Releases

No releases published

Packages

No packages published