nesi / support-docs

NeSI Mkdocs based support pages.
https://docs.nesi.org.nz/
4 stars 5 forks source link

Open all outgoing links on a new tab #219

Closed DininduSenanayake closed 4 months ago

DininduSenanayake commented 4 months ago

Solution

If we are to change this behaviour which is to open all outgoing links on a new tab, It can be done by adding the mkdocs-open-in-new-tab to the workflow and then add open-in-new-tab plugin to mkdocs.yml

plugins: 
  - open-in-new-tab
CallumWalley commented 4 months ago

I'm fine with this. Can be considered bad practice, but I think for external links that is the desired behavior most of the time.

Could also be done on a per-link basis with {:target="_blank"}

CallumWalley commented 4 months ago

Done in #220