Skip to content

Add script to sort glossary entries.#481

Open
cjerdonek wants to merge 2 commits intoFreeAndFair:masterfrom
cjerdonek:docs-glossary-sort
Open

Add script to sort glossary entries.#481
cjerdonek wants to merge 2 commits intoFreeAndFair:masterfrom
cjerdonek:docs-glossary-sort

Conversation

@cjerdonek
Copy link

As discussed here.

I don't know where you wanted the script, so I just put it at the top level. Also, I noticed there's a redundant file docs/glossary_concepts.txt, so I removed it.

Copy link
Contributor

@kiniry kiniry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know what you think. Thanks @cjerdonek!

sort-glossary.py Outdated

# Keep the intro at the beginning.
first_part = parts[0]
parts = sorted(parts[1:])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this should probably read sorted(parts[1:], key=lambda s: s.lower()) and declare the file as Python2.

@cjerdonek
Copy link
Author

Good point re: case-sensitivity. I half-noticed that but wasn't sure your preference. Done!

Copy link
Contributor

@kiniry kiniry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks, @cjerdonek!

@cjerdonek
Copy link
Author

No prob! (Btw, FWIW you can also run the script with Python 3, which is what I used.)

@kiniry kiniry modified the milestones: Phase-2-Amendment-2, UI/UX polishing & performance and security testing Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants