lhcb / glossary

LHCb Glossary
https://lhcb.github.io/glossary
Creative Commons Attribution 4.0 International
11 stars 16 forks source link

Term linking #35

Closed henryiii closed 5 years ago

henryiii commented 5 years ago

This attempts to add linking syntax. This can be expanded to other Kits.

Renaming pages to uppercase letters.

henryiii commented 5 years ago

If it's helpful, the sed term is (in fish):

gsed -i 's/\[\([[:alnum:]]*\)\]([[:upper:]]\.[^)]*)/«\1»/g' **.md

And the rename:

rename -x -C *
rename -a.md *

(macOS requires more fiddling in the middle).

henryiii commented 5 years ago

I batched them and accepted them in one go. You need to be in the code tab to accept multiple changes, though both tabs should allow you to accept one at a time. If you want to make a suggestion, it's a little button at the top of the edit box when commenting on code.

We'll see what that looks like rendered...

henryiii commented 5 years ago

And, as you noticed, my search and replace missed terms with spaces (intentionally since those were harder to convert to the shortcut form).

henryiii commented 5 years ago

And, to type « and », it's Option \ and Option Shift \ on a Mac. (⌥\ and ⌥⇧\). Alt 174 and Alt 175 on Windows. Or copy and paste, which is what I did.