Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
anyone know of tools for searching a statically generated site?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daniel Higginbotham  
View profile  
 More options Aug 6 2012, 2:29 pm
From: Daniel Higginbotham <dan...@flyingmachinestudios.com>
Date: Mon, 6 Aug 2012 14:29:50 -0400
Local: Mon, Aug 6 2012 2:29 pm
Subject: anyone know of tools for searching a statically generated site?

Are there any tools out there for adding search to a site which only consists of static files? I'm using nanoc (http://nanoc.stoneship.org/) to generate prose-like documentation (as opposed to more structured API documentation) for some projects which exist behind a firewall, so Google can't be used. Solr is possible, but I'd prefer not to use it. I'd like for the documentation to be completely self-contained.

One possibility would be create a static search index when the rest of the site is generated, and to use javascript to search against that index. It looks like this project would allow that: http://jssindex.sourceforge.net/ . However, it's pretty old and that makes me hesitant to try it out.

If anyone has any leads, I'd appreciate it :)

Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wyatt Greene  
View profile  
 More options Aug 6 2012, 3:37 pm
From: Wyatt Greene <techifer...@gmail.com>
Date: Mon, 6 Aug 2012 15:37:45 -0400
Local: Mon, Aug 6 2012 3:37 pm
Subject: Re: [boston.rb] anyone know of tools for searching a statically generated site?

One possibility (of many) is to convert your app to a Rack app.  Have Rack simply serve up the files that were generated from nanoc.  But also, Rack can react to a POST request generated from a search form.  From there, you are in dynamic-web-app Ruby-land, where anything is possible! :)  If the collection of web pages isn't too big (or you are not expecting tons of traffic), you could even write your own search code in Ruby that simply looks in all of the HTML files and builds an HTML response of the search results.

On Aug 6, 2012, at 2:29 PM, Daniel Higginbotham wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Choi  
View profile  
 More options Aug 6 2012, 6:41 pm
From: Daniel Choi <dhc...@gmail.com>
Date: Mon, 6 Aug 2012 15:41:36 -0700 (PDT)
Local: Mon, Aug 6 2012 6:41 pm
Subject: Re: anyone know of tools for searching a statically generated site?

You may want to check out how sdoc generates the Rails API documentation.
They seem to follow the same static searchable site generation strategy as
jssindex but modernized:

https://github.com/voloko/sdoc/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Higginbotham  
View profile  
 More options Aug 7 2012, 7:22 am
From: Daniel Higginbotham <dan...@flyingmachinestudios.com>
Date: Tue, 7 Aug 2012 07:22:04 -0400
Local: Tues, Aug 7 2012 7:22 am
Subject: Re: [boston.rb] Re: anyone know of tools for searching a statically generated site?

Thanks, I'll have a look

On Aug 6, 2012, at 6:41 PM, Daniel Choi wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burton  
View profile  
 More options Aug 7 2012, 10:26 am
From: Bill Burton <bbur...@mail.com>
Date: Tue, 7 Aug 2012 10:26:30 -0400
Local: Tues, Aug 7 2012 10:26 am
Subject: Re: [boston.rb] anyone know of tools for searching a statically generated site?

Hello Daniel,

On Mon, Aug 6, 2012 at 2:29 PM, Daniel Higginbotham <

dan...@flyingmachinestudios.com> wrote:
> Are there any tools out there for adding search to a site which only
> consists of static files? I'm using nanoc (http://nanoc.stoneship.org/) to
> generate prose-like documentation (as opposed to more structured API
> documentation) for some projects which exist behind a firewall, so Google
> can't be used. Solr is possible, but I'd prefer not to use it. I'd like for
> the documentation to be completely self-contained.

> One possibility would be create a static search index when the rest of the
> site is generated, and to use javascript to search against that index. It
> looks like this project would allow that: http://jssindex.sourceforge.net/ .
> However, it's pretty old and that makes me hesitant to try it out.

Since nanoc has a helper to generate a sitemap.xml file, you could try
http://www.markus-olbrich.de/javascript/sitesearch/doc.html to support
searching the sitemap.

A better approach might be to use Tipue Search (http://www.tipue.com/search/).
 It requires generating a .js file with the data to support searching.
 With nanoc, this would be extremely easy to implement by generating this
.js file in the Rules file preprocess do ... end block in a similar manner
to the way a sitemap.xml file is generated.

In either case, performing the normal "nanoc compile" to build the site
will also generate the index used for the search and it should not really
add much to the compile time unless the site is large or unless you opt to
parse all the content to generate the index.

As I also maintain a nanoc site, I'd be interested to know what solution
you end up using.

Hope this helps,
-Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Higginbotham  
View profile  
 More options Aug 7 2012, 10:45 am
From: Daniel Higginbotham <dan...@flyingmachinestudios.com>
Date: Tue, 7 Aug 2012 10:45:42 -0400
Local: Tues, Aug 7 2012 10:45 am
Subject: Re: [boston.rb] anyone know of tools for searching a statically generated site?

Thanks Bill! Tipue looks like exactly what I need. I'll definitely try it and let you know how it goes.

On Aug 7, 2012, at 10:26 AM, Bill Burton wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Higginbotham  
View profile  
 More options Aug 8 2012, 3:43 pm
From: Daniel Higginbotham <dan...@flyingmachinestudios.com>
Date: Wed, 8 Aug 2012 15:43:47 -0400
Local: Wed, Aug 8 2012 3:43 pm
Subject: Re: [boston.rb] anyone know of tools for searching a statically generated site?

So I got tipue search working at http://www.whoopsapp.com/ .  It wasn't too difficult. The nanoc project's at https://github.com/flyingmachine/whoops/tree/master/doc/site .

Here's the file where I generate the data for tipue:
https://github.com/flyingmachine/whoops/blob/master/doc/site/content/...

Here's the line in my Rules file where I handle the above file (though I should probably just modify the case block on line 44):
https://github.com/flyingmachine/whoops/blob/master/doc/site/Rules#L33

Here's the search results page:
https://github.com/flyingmachine/whoops/blob/master/doc/site/content/...

In this case I'm not sure how valuable it is as there are only three pages. But I do think it will be helpful for some of my other projects where there are multiple pages.

Thanks for the tip!

Daniel

On Aug 7, 2012, at 10:26 AM, Bill Burton wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »