Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Matt Layman
Matt Layman

Posted on • Originally published atmattlayman.com

     

Customer Docs - Building SaaS #85

In this episode, I integrated customer documentation into the app. I showed how to build Sphinx documentation into a Django project, then created a help view to link to the docs. Finally, I added documentation building to the deployment process.

I previously created a Sphinx documentation project to hold docs for my app, but I had not hooked the docs into my project yet. Before hooking it in, I explained how Sphinx works and how I customized the documentation to fit with my project.

I started by integrating documentation building into my Continuous Integration tools. This will check to make sure that my docs continue to build so that I'll know that things are safe to deploy.

After adding to CI, I plugged the generated documentation into the Django app so that WhiteNoise could show the files. I did this by using my custom version of the WhiteNoise middleware that can add any extra static files that I want.

Once the docs could be served by the app, I changed the footer to point to the documentation. After playing with that, I realized that I want a help page before directing users straight to the documentation.

I created a new view to describe how users can get help. In this view, I included a support email address. We wrote some tests to make sure it all worked.

To finish off the effort, I added documentation building to the deployment process so that Heroku will also have the generated documentation. We also added a step to make sure that Heroku will have compressed versions of the documentation that WhiteNoise can serve like gzip or brotli versions.

At the end of the stream, I talked about some of the projects that I'm going to tackle for next year.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Matt Layman is a software engineer from Frederick, MD. He is an open source software maintainer and advocate for Python.
  • Location
    Frederick, MD, USA
  • Work
    Senior Software Engineer at Doctor on Demand
  • Joined

More fromMatt Layman

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp