GithubHelp home page GithubHelp logo

mmikowski / support.balsamiq.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leon-barnard/balsamiq-support-site

0.0 1.0 0.0 735 KB

The code behind support.balsamiq.com

License: MIT License

JavaScript 4.35% Shell 0.14% HTML 75.75% CSS 19.76%

support.balsamiq.com's Introduction

About

The repository behind https://support.balsamiq.com - a gohugo.io-powered, S3-hosted website for Balsamiq documentation and troubleshooting.

If you are viewing this repository with the intention of using the theme, please note that you will have to modify the includes, removing our specific assets referenced from balsamiq.com. We use Bootstrap 3, so you can just replace the section of includes under B.COM CSS and B.COM JS in the theme file layouts/partials/header.html. Instead use, for instance the HTML in https://www.bootstrapcdn.com/

Content

  • Add new files to the content/(section name) directory with a .md extensions. Markdown is accepted, and HUGO's front matter is expected for the navigation to work properly.
  • It's recommended that you create new docs using the command line to add the file to the content directory with archetype templates. This inserts and formats the front matter into the article properly, including parent and creation date.
    • $ hugo new mybalsamiq/mypage.md
  • To change the order of how articles appear on the Product overviews add a weight to the front matter.
  • For help with Markdown, see this cheatsheet or this one
  • Markdown doesn't allow markdown syntax inside an HTML block element (a <div> or <p>, for example), so you can use this "hack" to convert an inline element to a block element using a Bootstrap helper class (".show") (for info and warning alert messages, for example)
    • Info alerts:
      {{% alert info %}}**Note:** You can also export a project to PDF from the context menu on the [All Projects (a.k.a. Home) page](/mybalsamiq/home/) in myBalsamiq.{{% /alert %}}
    • Warning alerts:
      {{% alert warning %}}**Note:** You can also export a project to PDF from the context menu on the [All Projects (a.k.a. Home) page](/mybalsamiq/home/) in myBalsamiq.{{% /alert %}}

HUGO Usage

Installing prerequisites

Install Pygments

Pygments is a tool used for syntax highlighting. Most fresh installations of Python (such as that installed on OSX) don't have the package installation tool pip by default, so we need to install that first.

Install pip

If you use OSX and have installed Python using brew, you should already have pip installed.

If you're running OSX's default install of Python it's probably easiest to follow the instructions at this URL: https://pip.readthedocs.io/en/stable/installing/

Install Pygments

With pip installed, just run:

pip install Pygments

You might need to run that with a preceding sudo depending on how you installed Python.

Running Hugo

  • Run ./launchHugo.sh (or $ hugo server --watch)
  • If page hierarchy has been altered from previous build, remove public/ directory first, then run hugo.
  • To build hugo without watch, just run $ hugo
  • To use with LiveReload, install the extension for Chrome.
  • Open http://localhost:1313 to see your site.

Running Gulp to rebuild CSS/JS Assets

Installing Gulp

  • Make sure you have gulp installed (https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md). If you don't run this:
    • $ sudo npm install -g gulp
  • Or Install gulp in your project devDependencies:
    • $ npm install --save-dev gulp
  • Install dev dependencies by running this from terminal in docs.balsamiq.com directory:
    • $ npm install

Updating Gulp

  • To update globally: $ npm update gulp -g
  • To update a local instance: cd /your/folder/ then: $ npm update gulp

Running Gulp Tasks Once

  • All Gulp tasks
    • $ gulp
  • Just CSS
    • $ gulp sass
  • Just JS
    • $ gulp js

Running Gulp during development (LiveReload)

  • If you're working on SASS or JS, run gulp using "watch" to rebuild css/js files as you make changes to them.
    • $ gulp watch dev
  • or you can run ./launchGulp.sh

support.balsamiq.com's People

Contributors

balsamiqbrendan avatar peldi avatar leon-barnard avatar lgreen1133 avatar virginpereira avatar jibbajabba avatar boltomli avatar balsamiqfra avatar drewops avatar

Watchers

Michael S. Mikowski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.