Single page application for docs using Discourse API

AI-generated summary

erlend_sh proposes a lightweight single-page application (SPA) for Discourse documentation, such as docs.discourse.org, that interfaces with the Discourse API while opening forum links in new windows for easier styling. The concept includes a mockup featuring three main components: Top pages (displaying most-read topics or external blog posts), a Sitemap (automatically listing pages in a category sectioned by tags), and a Search widget that toggles between category-specific and global search. erlend_sh notes that New Relic offers a similar implementation for their support site. Falco responds positively, confirming they are implementing a similar integration on an intranet app using Scala and the Play Framework, noting that the Discourse Search API is sufficient for tight integration.

Continuing discussion from here.

The v1 I had in mind for this was actually a lightweight single page application (i.e. docs.discourse.org) interfacing with the Discourse API, which would open links in a new window (meta.discourse.org). That way it’d be easier to style it to taste. But I suppose it might be roughly the same amount of work as a Discourse plugin.

I haven’t had the chance to clean up my ideas yet, but here’s a mockup I was fiddling with:

It has 3 components to it:

Top pages

Top pages on forum

An widget populated with the top pages, based on Most Read or same algorithm as Top.

External pages

Dedicated space for blog posts or 3rd party articles that are recommended reading.

Sitemap

List all the pages of a specified category, sectioned by tags. Essentially an automated version of what I demonstrated in the Meta docs TOC.

Search

Default search to a specified category, but let the user toggle between category-specifc and global search.

6 Likes

New Relic has a pretty slick implementation of this. They’ve created a site-wide newrelic.com search. Try search “database” for instance and see what comes up:

3 Likes

Very nice!

I’m doing this too, on our intranet app (Scala + Play Framework). The search API is more than enough to allow such tight integration. Discourse is already part of the whole app.

1 Like