Improve documentation for mimetypes and API server capabilities.

Review Request #9288 — Created Oct. 18, 2017 and submitted

Information

Review Board
release-3.0.x
86eac71...

Reviewers

This modernizes some of the documentation for mimetypes and API server
capabilities, based on the work done on the extension hooks. It adds
documentation for arguments and return types and adds a file-level
docstring for the code reference index.

Built the docs and looked through them. No build errors.

Description From Last Updated

This is probably much better done with format_html_join, in which case the return type of this method will match the …

daviddavid

Should we mark_safe?

daviddavid

Should we mark_safe?

daviddavid
david
  1. These comments aren't really about the documentation, but about some inconsistencies that said documentation made obvious.

    1. I noticed these as well (plus another Markdown-related improvement we can make), and have a change in progress for some of it. I'm going to keep this one about the docs and post a new one later today with the fixes.

    2. Fixed up in https://reviews.reviewboard.org/r/9303/. Dropping them here, since they're not fixed in this change.

  2. reviewboard/attachments/mimetypes.py (Diff revision 1)
     
     
     
     
     
    Show all issues

    This is probably much better done with format_html_join, in which case the return type of this method will match the others (SafeText)

  3. reviewboard/attachments/mimetypes.py (Diff revision 1)
     
     
    Show all issues

    Should we mark_safe?

  4. reviewboard/attachments/mimetypes.py (Diff revision 1)
     
     
    Show all issues

    Should we mark_safe?

  5. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (1849644)
Loading...