Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2018-11-17 12:20:51
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Offline Documentation
With the Download Manager of the iCab Browser you can download the whole docs.textpattern.com/ set and the URLs will work locally.
Offline
Re: Offline Documentation
philwareham wrote #315339:
You can build a working local site from the repo if you run a few command line instructions.
Can you list these commands? I checked out jekyl which seems pretty darn useful.
I would, however, need to do a few things to get it working offline – change the URLs to relative URLs (which is probably a good thing anyway) and bundle the CSS and JavaScript (as it uses those directly from our main site for my ease of development).
I did use sitesucker and grabbed both docs.textpattern.com and textpattern.com (which gave me the assets folder) Sitesucker took care of the relative links, so now I have an offline equivalent, and have thrown my students at it.
How does the search function work? ie can it be made to operate in an offline environment?
Offline
Re: Offline Documentation
The search is fine with JavaScript (because Jekyll is a flat fine system there is no database to search so this is the best option – not great but it works). Again, if I bundle the CSS and JS it should work offline.
Offline
Re: Offline Documentation
I like the way the phplist team is actually distributing their manuals. Admittedly, I hate the layout and graphics of their epub though.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Offline Documentation
There’s an existing issue to bundle up the docs into offline format, though I haven’t made much headway with it recently.
Offline
Re: Offline Documentation
Can you detail how to build this with Jekyll. I can handle the relative link bit.
philwareham wrote #315339:
Yes I used Jekyll for the site as that is what runs GitHub Pages. You can build a working local site from the repo if you run a few command line instructions.
I would, however, need to do a few things to get it working offline – change the URLs to relative URLs (which is probably a good thing anyway) and bundle the CSS and JavaScript (as it uses those directly from our main site for my ease of development).
I can look at some of the above next week sometime.
Offline
Re: Offline Documentation
Hi Dale, this article seems to describe the process pretty well:
Note you’ll need Ruby (and Bundler) installed on the local machine. You can check if Ruby is installed already by going to your terminal and typing the following:
ruby -v
Offline
Re: Offline Documentation
BTW I have just made all the URLs within the docs Jekyll site work on local installs (absolute paths instead of absolute URLs now).
Offline