This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Simple integration tools to link to embedded Madcap Flare help

Installation

Install the Madcap Flare integration from PyPi:

pip install django-madcap-flare

and add it to your settings.py:

INSTALLED_APPS = [
    ...
    'madcap_flare',
    ...
]

You will also need to configure the `MADCAP_FLARE_ROOT and MADCAP_FLARE_TAGS <#configuring>`__

Usage

You can convert Madcap Flare header files into a Python dict with the get_help_mapping command:

python manage.py get_help_mapping path_to_file.h

This will output a dict on the command line that you can copy into your settings.py file.

Configuring

To setup your template tags, take the output of get_help_mapping and set it to the MADCAP_FLARE_TAGS in settings.py:

MADCAP_FLARE_TAGS = {
  'my-help-topic': '1000',
  'other-help-topic': '2000',
}

MADCAP_FLARE_ROOT = 'https://www.example.com/help_topics/'

The MADCAP_FLARE_ROOT setting tells Django what to use for your host name and default path.

View Mixin

To inject your information into your templates, you can use the view mixin for Madcap Flare:

from django.views.generic import ListView

from madcap_flare.views import MadcapFlareMixin

from myproject.myapp.models import MyModel


class MyListView(MadcapFlareMixin, ListView):
    """Sample list view.
    """

    help_key = 'my-help-topic'
    queryset = MyModel.objects.all()

The MadcapFlareMixin injects the help_key object into your template context.

Template Tag

The madcap_flare_help template tag outputs a Madcap Flare URL that can be linked from your templates:

{% load madcap_flare_tags %}

<p>To get more help on this feature, see our
  <a href="{% madcap_flare_help %}">documentation</a>
</p>

With the help_key set above, this will output:

<p>To get more help on this feature, see our
  <a href="https://www.example.com/help_topics/Default.htm#cshid=1000">documentation</a>
</p>

Developing

To test the integration just run:

virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
python setup.py develop
python tests/manage.py test

Writing Docs for PyPI

To convert the docs to RST for PyPI:

pandoc --from=markdown --to=rst --output=README.txt README.md
Release History

Release History

0.0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-madcap-flare-0.0.3.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Aug 24, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting