Skip to the content.

This documentation site is under construction

Please excuse the mess as we get the docs site set up. The files for the Documentation site for CrankShaft will be in /docs/ and hosted by github pages. If you’d like to contribute here are all of the Issues related to the docs.

CrankShaft is not yet stable, we do not advise using it for a production website. With your help though we can get it there! Tasks needed to reach stable v1.0 build of CrankShaft

How to use CrankShaft

CrankShaft was designed to be downloaded to your computer unzipped, and then using HubSpot’s FTP uploaded to your HubSpot portal.

We currently recommend Transmit FTP for Mac users due to it’s Synchronize capability. You can then use a skip rule to skip uploading of Markdown files.

  1. Add a Skip rule.
  2. Set kind is Markdown
  3. Close the rules window and run a synchronize simulation look to see if it mentions .md files. We don’t want those to sync.

We may remove the markdown files over time to make this easier. If anyone knows a similar FTP client for Windows please post an issue in github so we can reference it.

The file structure

Everything you need is inside the Crankshaft folder, everything else is not necessary.

CrankShaft
├── code/
│   ├── cs/
│   │   ├── cs-defaults.css
│   │   └── cs-grid.css
│   ├── css/
│   │   ├── theme-module-customizations.css
│   │   └── theme.css
│   ├── hubl/
│   │   ├── theme-macros.css
│   │   └── theme-variables.css
│   ├── js/
│   │   └── theme.js
├── globals/
│   ├── global-groups/
│   └── global-modules/
├── modules/
│   └── dependencies/
└── templates/
    ├── blog/
    ├── page/
    └── system/

Set your Theme settings

Once uploaded go into CrankShaft/code/hubl/theme-variables.css

This is where you set all of your sites settings using HubL variables. Turn on and off features like the CrankShaft Grid. We added comments to the code to keep it clear what does what. Some features add CSS and/or JS. These variables will enable/disable the code regardless of it’s type meaning you’re only loading what you want to load.

Styling your site

CrankShaft was designed to enforce HubSpot development best practices and encourage Templates, Custom Modules, and Themes to be built site agnostically. A more in-depth explanation of what this means will be added, but the basic jist:

Template Styles

Navigate to CrankShaft/code/css/theme.css This is your site’s stylesheet. Put all of your template specific CSS here.

Custom Module Theming

Custom Modules on CrankShaft are designed to be site agnostic. Only Styles required for the functionality of the module should be included in the custom module itself. Any colors and flair specific to modules in this theme should be done in CrankShaft/code/css/theme-module-customizations.css