A common theme shared across Mobify's platform documentation. This theme should be used for all new documentation going forward. It currently is used for the following projects:
- Node ^8.9.x LTS
- npm ^5.5.x
The theme is distributed via the @mobify/documentation-theme
npm package. Add as an npm dependency to your project, npm i
and then make
use of shared templates, mixins, and scripts in your project. Check out one of
the other projects to see how it should be used.
The theme itself is not "runnable". The only way to do development on the theme
and be able to quickly test your changes is by using it in another project via
npm link
.
git clone [email protected]:mobify/documentation-theme.git
cd documentation-theme
npm i
npm link
cd ../<project-that-uses-theme>
npm link @mobify/documentation-theme
npm run docs:dev
The release is currently done manually. Follow these steps:
- Cut a release branch from
develop
calledrelease-vX.Y.Z
- Increment the version number in
package.json
and commit that change to the release branch. npm login
npm publish
- Merge
release-vX.Y.Z
tomaster
(no PR review required). - Tag a release on GitHub and add a couple notes about what has changed.
- Merge
master
todevelop
(no PR review required).
We use a Google Custom Search Engine to power our docs search. For admin
access login as [email protected] to https://cse.google.com/cse/ and select
either "Docs Theme Prod" or "Docs Theme Dev" (for local/staging). Credentials
are in LastPass's Shared-Product
folder.
docs.mobify.com has been added to Google Search Console. For any investigation around SEO and to do a Fetch As Google you'll want to start here. Login with the same [email protected] account.
We support the following metadata in your _data.json
. These improve our SEO
and make our links look nice when they are posted on Slack or social media.
Please use them!
title
- Short and descriptive, bonus points for terminology that somebody would search for.intro
- One to two sentences about this page. This is used as thedescription
meta tag and may be used in google search results or when a page is shared in slack/social media.crawlPriority
- The priority of this doc relative to other docs on our site when it comes to web crawlers.0.5
is the default. Details can be found in the sitemaps spec.