Publishing a code sample book from Stackoverflow to LeanPub using Drupal and GitLab
Breadcrumb
- Home
- PronovixBlog
- Publishing a Code Sample Book From Stackoverflow To LeanPub Using Drupal and GitLab
We built a developer portal for iText that helps them to republish questions, answers, and code samples from Stackoverflow in their documentation. The same Drupal site also has an export function that packages the markdown content from the questions in a format that can be published on LeanPub, where it becomes available as a PDF, EPUB or MOBI document.
Stackoverflow is a great content marketing channel for developer evangelists. iText, the company that created the eponymous PDF library, has used Stackoverflow with great success to gain a strong reputation with developers and to build a sustainable business around their open source software.
In this blogpost we want to share how Bruno Lowagie (the original developer of iText) designed a workflow that allows him to publish questions and answers from Stackoverflow on the iText Drupal site and then export them to LeanPub (utilizing a custom Drupal module):
The finished sample code is then uploaded to GitLab, the open source code repository that iText uses to manage their project’s source code and example files.
Contents of LeanPub-specific book export from Drupal:
See also Bruno Lowagie’s video tutorial:
Jan is responsible for managing hosted customer environments, development workflows, devops processes and the overall IT infrastructure at Pronovix. With 20+ years of experience as a systems engineer including 10+ years in project management, he is well equipped to handle challenges of various sizes in any of the lifecycle phases.
Articles on devportals, DX and API docs, event recaps, webinars, and more. Sign up to be up to date with the latest trends and best practices.