pyviz / pyviz.org

Source for the PyViz.org website.
https://pyviz.org
Other
151 stars 50 forks source link

create anchors in All Tools #104

Closed raybellwaves closed 3 years ago

raybellwaves commented 3 years ago

https://pyviz.org/tools.html e.g. create an anchor for Geospatial to make it easier to share

jbednar commented 3 years ago

The anchors are there already; e.g. https://pyviz.org/tools.html#geospatial and https://pyviz.org/tools.html#native-gui . Are you wanting them to be more visible?

raybellwaves commented 3 years ago

Are you wanting them to be more visible?

yes please https://pyviz.org/tools.html#all-tools

e.g. when you hover over all-tools it gives the options of "permalink to this headline". I don't see that with core and the others

jbednar commented 3 years ago

Ah. I think the top-level heading is handled in Markdown, while we're creating the raw HTML for the actual tools listing from a template. The line involved is <h3 id="{{ section.name.lower().replace(' ', '-') }}">{{ section.name }}</h3>, and it looks like the HTML code for that first heading ends up as <a class="headerlink" href="#all-tools" title="Permalink to this headline">¶</a>. So we could try changing that line to <h3 id="{{ section.name.lower().replace(' ', '-') }}">{{ section.name }}<a class="headerlink" href="#{{ section.name.lower().replace(' ', '-') }}" title="Permalink to {{ section.name }}">¶</a></h3>. Might work?

jbednar commented 3 years ago

Seems to have worked!

raybellwaves commented 3 years ago

thanks!