File: replace_url.py

package info (click to toggle)
python-inline-snapshot 0.31.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,708 kB
  • sloc: python: 9,261; makefile: 39; sh: 32
file content (6 lines) | stat: -rw-r--r-- 178 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
import mkdocs


class ReplaceUrlPlugin(mkdocs.plugins.BasePlugin):
    def on_page_content(self, html, page, config, files):
        return html.replace("docs/assets", "assets")