cityofaustin / techstack

Project management for the City of Austin's new digital service delivery platform, Austin.gov.
11 stars 3 forks source link

Implement style guide menu in Joplin (make styleguide iframe TOC match Gitbooks TOC) #3180

Closed desigonz closed 4 years ago

desigonz commented 4 years ago

As a content editor I want the style guide panel in Joplin to display information relevant to the component/content type I am editing so that I can more efficiently find appropriate guidance.

Is your feature request related to a problem? Please describe. The style guide panel in Joplin allows content editors to reference the style guide, but it's only half-way set up.

Acceptance criteria

desigonz commented 4 years ago

@briaguya Wasn't planning to work Jekyll build process, and it's much lower priority than other things. Is that a blocker for this issue? We could discuss this at the next dev sync if you'd like.

easherma commented 4 years ago

@desigonz are we going to try to rethink our jekyll build process (the way the github.io version of the style guide) is done for this?

From what I've seen the github/gitbooks integration we have going on is kind of messy, and it might be worth thinking through a more manageable solution.

Possible options:

  • Try to figure out a way to make gitbooks and iframes play nice (probably asking gitbooks nicely to see if they're willing to help us with cross frame options)
  • Update our jekyll theme to display the correct items in the side menu but nothing else
  • Rethink our style guild build process/jekyll theme stuff

@briaguya for the record:

easherma commented 4 years ago

Brain dump: I've tried a couple things, but Jekyll isn't really set up to be nimble about parsing the data from SUMMARY.md as I'd like.

I'm tempted to migrate this to a Hugo project, which will follow the directory structure and link everything with relative links no problemo. Generating the Table of Contents is something it can do automatically, but the file structure isn't quite the same as Gitbook's.

I'm going to stew on this. It's not ideal, but hardcoding the table of contents in HTML might not be too bad, since we don't change it terribly often.

Other options: Try Gitbooks legacy CLI. It's not supported anymore and may be missing some features, but it may work just fine for the iframe. Look into a tool for parsing the markdown generated by Gitbooks into html or some other template (main issue here is the filepaths and then having a directory that matches)

easherma commented 4 years ago

I made a version with a hard-coded nav for table of contents, its visibile in joplin now, or at https://cityofaustin.github.io/digital-services-style-guide/

desigonz commented 4 years ago

Looks great, QA complete! 🎉 I guess we can close the issue?