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

/doc/reference/glossary/ #16

Closed
behoppe opened this issue May 24, 2022 · 4 comments · Fixed by #164
Closed

/doc/reference/glossary/ #16

behoppe opened this issue May 24, 2022 · 4 comments · Fixed by #164
Assignees
Milestone

Comments

@behoppe
Copy link
Member

behoppe commented May 24, 2022

A glossary would be a great asset on the site. For some concepts there are multiple terms from different teams or different eras (e.g. span, depth, critical path length). We'll help people get that straight. Charles provided me with the Parallelism chapter from his book to make a starting list of entries.

I wonder if it would be possible to have Eleventy parse each site page so that when these words appear (perhaps with some markup like &span&) then they are rendered as a link to the glossary entry.

@behoppe behoppe added this to the Version 1.0 milestone Jun 20, 2022
@behoppe behoppe self-assigned this Jun 20, 2022
@behoppe
Copy link
Member Author

behoppe commented Jun 21, 2022

Started glossary based on \defn{} terms in the Parallel chapter of the Algorithms book. Each term gets a file in the /src/doc/reference/glossary folder. I have entered a few definitions and set up an Eleventy collection that you can edit with Netlify CMS.

One wrinkle in the current design is that each entry holds its definition in its front matter. For the sake of editing, I would prefer the definition to go in the body/content of the entry, but I am not sure how to pull that body/content into a unified glossary page. (Whereas front matter is easy to pull into a unified glossary page.)

@behoppe behoppe added the documentation Improvements or additions to documentation label Jun 28, 2022
@behoppe behoppe changed the title Glossary /doc/reference/glossary/ Jul 13, 2022
@behoppe behoppe assigned cleiserson and unassigned behoppe Jul 13, 2022
@behoppe
Copy link
Member Author

behoppe commented Jul 18, 2022

@cleiserson I was unable to resolve Netlify CMS issues (instead calling Netlify CMS into question per #100); however, I did make some important updates to the glossary setup.

  • I figured out how to programmatically render the "body" of each entry as a list on a single page, and so the clunky use of front matter to hold a "defn" field is over. I have reconfigured every glossary entry to have a "title" in its front matter, followed by its definition in the body of the post. And Netlify CMS is reconfigured to edit the content in that format.
  • I also implemented a {% defn "term", "optional text" %} shortcode, which I will document tomorrow. (Short version: It does exactly what we have discussed last week.)

@behoppe behoppe assigned behoppe and unassigned cleiserson Aug 3, 2022
@behoppe behoppe removed the documentation Improvements or additions to documentation label Aug 3, 2022
@behoppe
Copy link
Member Author

behoppe commented Aug 3, 2022

The team agreed today per @cleiserson that we'll hold off on the glossary for v1.0. To do that, I will change the behavior of the defn shortcode so that it makes regular text without a link, and I will unpublish the glossary page.

@behoppe behoppe linked a pull request Sep 9, 2022 that will close this issue
@behoppe
Copy link
Member Author

behoppe commented Sep 9, 2022

Glossary has been reborn with content from Cilk++ programmer's guide, per #164.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants