Skip to content
Snippets Groups Projects

Doc decorator

Merged Peter Lünenschloß requested to merge docDecorator into develop

In preparation of #109 (closed) and #236 (closed) the documentation pipeline had to be changed from code-parsing to decorator based docstring assignments (to the sac.SaQC methods). Also, this change makes it much less hacky and transparent and generates a central place for templating saqc-(method)-docstrings (sphinxdoc/scripts/templates.py)

MR includes:

  • new file sphinxdoc/scripts/templates.py, containing:
    • helper functions for docstring modification (add/remove sections/parameters)
    • doc decorator for object documentation
  • saqc.SaQC methods are now decorated with doc decorator
  • Returns section of methods documentations now lists saqc.SaQC object defaultly (saqc methods template)
  • removal of hacky workaround scripts

The MR aims to preserve appearence of documentation as it is, by removing inner workarounds and generating template modification mechanism for future modifications (for example according to #236 (closed)

Edited by Peter Lünenschloß

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Bert Palm
  • Bert Palm
  • Bert Palm
  • added 1 commit

    • 967ed606 - removed comments/renamed parameters

    Compare with previous version

  • added 1 commit

    • ecc4accc - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Bert Palm mentioned in issue #325 (closed)

    mentioned in issue #325 (closed)

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading