Comments (6)
Now that we're building docs statically, we can do this. The question is where to get the source of the page title. Should it just be what's in the Navigation sidebar?
from docs.
Considering we have fairly concise explanations of the purpose of the document as a "header 1" at the top of the markdown docs (example: # Charm configuration
in authors-charm-config.md
), maybe we can grab that and set it as the <title>
content during build.
I think we should stray away from dynamically setting the page title in JavaScript (I don't think that would be beneficial since I doubt indexers wait until dynamic changes are made, rather they just fetch it in the current static state without JavaScript execution), but I'd be 100% happy to quickly change the main.js file to set the page title to the `article h1 content if nobody objects to that or offers up a better idea :D
from docs.
We do this in the build we're working on at jujucharms.com. You can see an example on the QA site.
http://qa.storefront.theblues.io:6543/docs/config-aws
At some point next week this should be up and working.
from docs.
That is good to hear. I definitely think it'll make managing having multiple Juju documentation tabs open at once a lot easier.
from docs.
Just FYI, when we move to the new build tool the docs titles will be set
from metadata.
On Nov 14, 2014 2:11 AM, "Joshua Strobl" [email protected] wrote:
That is good to hear. I definitely think it'll make managing having
multiple Juju documentation tabs open at once a lot easier.—
Reply to this email directly or view it on GitHub
#81 (comment).
from docs.
I'm closing this - not all pages have been given metadata yet, but where it exists it is used, and where it doesn't the website reverts to using the initial heading, which works well
from docs.
Related Issues (20)
- Add tutorial: Integrating a GKE cluster HOT 2
- Add tutorial: Understanding multi-cloud controllers
- Redirect loop in docs HOT 3
- Add tutorial: Kubernetes storage configuration HOT 1
- [2.6] Add command `show-application` HOT 1
- [Kubernetes workflow] Not clear at all how to add k8s cloud to Juju HOT 1
- Cross model relations scenario 2 is out of date HOT 1
- Documentation for Proxy Configuration Could Use More Detail HOT 7
- No way to jump between doc versions HOT 4
- Juju docs missing heading anchors HOT 3
- "getting started with juju" link forwards to 404 HOT 1
- document what happens with upgrade-charm when default charm config changes HOT 1
- juju bootstrap --help points to nonexistent docs for controller and model config HOT 1
- Broken link to commands reference HOT 2
- Missing 'debug-code' command
- model upgrades only increment 1 major version at a time
- Windows install instructions are inconsistent
- Broken links in "working offline" section in JUJU docs on both jaas.ai and juju.is sites. HOT 1
- LXD Guide improvement suggestions
- using-lxd-clustering-with-juju: dead link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.