I suggest you ...

PDF download for .md and .tex files from blob and blob edit view

Let users download PDF versions of .md or .tex files from the:

- blob view
- blob edit view for the current textarea content they are editing (serving as a preview).

---------------------------------------------

Proposed implementation:

Convert `.md` to `.tex` via kramdown.

PDF is compiled from tex via texlive 2009 at push time (there would be a compile queue).

Add links to the compilation logs, and new views with the logs.

Preprocess logs to filter / highlight errors.

We can introduce only the kramdown dependency, and let interested users install texlive themselves.

----------------------------------

**Economic Viability Analysis**

I know this is a big feature and it will have large maintenance cost, but it is also a big opportunity to get some money / attention to gitlab.com:

- this is a great feature that GitHub does not have.

They are now moving to publishing through GitHub Pages, but the real deal of publishing is PDF output. We should get there before them.

- there are already simpler services which are profitable doing only tex -> PDF conversion: https://www.sharelatex.com/project

GitLab is way more powerful in every other sense, so if we had such a feature, I am confident that people would be willing to pay money for it.

I propose the following business plan:

- under project / settings, you can turn PDF output on / off per project.

- PDF output is free only for public projects. You have to pay for private projects.

- count and limit compilation execution CPU time for public projects. You have to pay to go over a certain time.

Key components of Sharelatex have gone open source now, so we may try to reuse them: https://www.sharelatex.com

I am considering maintaining a live GitLab fork to test the feasibility of this idea, see comments for updates.

42 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ciro SantilliCiro Santilli shared this idea  ·   ·  Admin →

    12 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base