Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator for offline documentation #6

Closed
t-paul opened this issue Feb 7, 2019 · 11 comments
Closed

Generator for offline documentation #6

t-paul opened this issue Feb 7, 2019 · 11 comments

Comments

@t-paul
Copy link
Member

t-paul commented Feb 7, 2019

Outline

The user manual for OpenSCAD is maintained at Wikibooks. This is a nice solution as everybody with a Wikipedia account can help improving it. The drawback is that it's only available online. The "Print Version" accessible there needs special work and duplicates part of the information.

It would be very useful if generating an offline version that could be shipped with OpenSCAD could be automated.

Details

Wikipedia allows the export of data via a simple interface (https://en.wikipedia.org/wiki/Help:Export)

This is probably mainly intended to be the source for backups and/or for transferring data from one installation to another. There's big list of converters around, most seem to target the import into another wiki software but some will convert to other file formats already. (https://www.mediawiki.org/wiki/Alternative_parsers)

The manual export is easily done by calling https://en.wikibooks.org/wiki/Special:Export and entering "OpenSCAD_User_Manual" into the "Add pages from category". This exports all the text content into one big XML file.

The ideal option would be an automated way to convert this XML file into different formats. As first step, to make it usable as off-line documentation, the target would probably be either static HTML that could be shipped with OpenSCAD or maybe PDF.

It needs investigating if that actual programming is required, or if the existing tools are maybe already sufficient for that. So the specific tasks could be one of

  1. write a script that does all the conversion and image downloading

  2. write a simple script to just run various existing tools

  3. go though the wiki pages of the manual and adjust some of the
    text so it works nicely with some existing tool

  4. use a tool or write a script to scrape the HTML representation from Wikibooks

  5. something else, we did not see yet...

Ideally that should run on Linux so it could be integrated into one of the automatic build servers (e.g. Travis). A manual solution that is just started now an then would also be a nice thing.

Challenges:

  • Investigate current status of available converters
  • Optional: Integrate the solution into the OpenSCAD build process

Expected Outcome

  • An offline user manual that can be included in OpenSCAD releases.

Project Properties

Skills

  • Programming language is python (or some other widely used scripting language... make a suggestion!)

Difficulty

Easy

Additional information


Mentors: Marius Kintel (IRC: kintel), Torsten Paul (IRC: teepee)

@css911

This comment has been minimized.

@t-paul

This comment has been minimized.

@css911

This comment has been minimized.

@RomitKumar

This comment has been minimized.

@t-paul

This comment has been minimized.

@RomitKumar

This comment has been minimized.

@t-paul

This comment has been minimized.

@ixil
Copy link

ixil commented Jun 11, 2019

@t-paul t-paul changed the title Offline documentation Generator for offline documentation Feb 13, 2021
@shruti-tanpure
Copy link

Hey! I would like to work on this issue.

@t-paul
Copy link
Member Author

t-paul commented Apr 10, 2021

That's still possible, with the deadline approaching fast and other students having quite a head start, you may need to get into the topic in a very focused way.

@shruti-tanpure
Copy link

Okay! Thank you @t-paul

@t-paul t-paul closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants