mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
4ad56e8afc
Hello! We wanted to make the docs less impersonal, so we decided to add contributors. Now each doc page that has an `editUrl` (i.e, isn't generated) shows a list of everyone that contributed to it. This list is generated by: 1. Running `swizzle` on the `DocItem/Footer` in Docusaurus. 2. Grabbing metadata for the current file using an internal docusaurus API (Thank you to @homotechsual for the help there) 3. Getting the commits to the file in question with the GitHub API ![image](https://github.com/Unleash/unleash/assets/107407814/fd9c92ef-36ab-4d9e-ac11-6d724fd55d11) <details> <summary> Here's the command I ran, for posterity </summary> <code>npm run swizzle @docusaurus/theme-classic DocItem/Footer -- --wrap</code> </details> ## Discussion points 1. Design. What do you think of the layout? 2. Right now I'm hardcoding the info of Unleash team members. This creates a small maintenance burden, but it's something we wanted to add.
1 line
369 B
XML
1 line
369 B
XML
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 161 161"><path fill="#1A4049" d="M80.71 160.31c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80Z"/><path fill="#fff" d="M92.14 46.03v45.71H115V46.03H92.14ZM69.29 68.88V46.03H46.43v68.57h45.71V91.74H69.29V68.88Z"/><path fill="#817AFE" d="M115 91.74H92.14v22.86H115V91.74Z"/></svg> |