Skip to content

Feat: Add print to PDF for wiki

fenyu requested to merge gitlab-jh/jh-team/gitlab:print-wiki into master

What does this MR do and why?

Related issue #414691 (closed)

Use print-js to print wiki page content, and make it to pdf.

/cc @prajnamas @JeremyWuuuuu @qk44077907

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

  1. In rails console enable the experiment fully
    Feature.enable(:print_wiki)
  2. Visit any wiki pages such as http://gdk.test:3000/test/test/-/wikis/home
  3. Click the print button.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by fenyu

Merge request reports

Loading