Coder Social home page Coder Social logo

bculberson / sfguides Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowflake-labs/sfquickstarts

0.0 1.0 0.0 246.87 MB

Follow along with our tutorials to get you up and running with the Snowflake Data Cloud.

License: Apache License 2.0

Starlark 2.87% Makefile 0.23% Go 29.04% HTML 32.21% JavaScript 23.50% Shell 0.21% SCSS 10.72% Closure Templates 1.22%

sfguides's Introduction

Snowflake Guides

Builder

Demo

What are Snowflake Guides?

Snowflake Guides(SFGuides) are interactive tutorials and self-serve demos written in markdown syntax. SFGuides provide a unique step-by-step reading experience and automatically saves tutorial progress for readers. These tutorials are published at guides.snowflake.com

You can submit your own SFGuide to be published on Snowflake's website by submitting a pull request to this repo. This repository contains all the tools and documentation you’ll need for building, writing, and submitting your own SFGuide!

What's special about the SFGuide format?

  • Powerful and flexible authoring flow in Markdown text
  • Ability to produce interactive web or markdown tutorials without writing any code
  • Easy interactive previewing
  • Usage monitoring via Google Analytics
  • Support for multiple target environments or events (conferences, kiosk, web, offline, etc.)
  • Support for anonymous use - ideal for public computers at developer events
  • Looks great, with a responsive web implementation
  • Remembers where the student left off when returning to a codelab
  • Mobile friendly user experience

How to get started

  1. nodejs & npm (Install NodeJS & npm)
  2. install gulp-cli:
npm install --global gulp-cli
  1. install Golang (Install Go)
  2. add /usr/local/go/bin to the PATH environment variable. You can do this by adding the following line to your profile (.bashrc or .zshrc):
#adding Golang to path
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$HOME/go/bin

Note: Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as source $HOME/.zshrc.

  1. install claat:
go get github.com/googlecodelabs/tools/claat
  1. navigate to the site directory:
cd site/
  1. install dependencies:
npm install
  1. run the site locally
gulp serve

Congratulations! You now have the Snowflake Guides landing page running.

Now lets add our first SFGuide:

  1. Terminate the running gulp server with ctrl C and navigate to the devlab directory
cd site/devlabs

The devlabs directory is where to store all SFGuide content, written in markdown.

  1. Use the claat tool to convert the markdown file to HTML
claat export sample.md

You should see ok sample as the response. This means claat has successfully converted your .md file to HTML and created a new directory named sample.

  1. Now lets run our server again, this time specifying our devlabs directory of content
gulp serve --codelabs-dir=devlabs

You can now navigate to the landing page in your browser to see your new codelab!

You can use the sample SFGuide as a template, just change the name of the file and the id listed in the header.

Tips

How do I publish my Snowflake Guide to guides.snowflake.com?

  1. You will need to sign Snowflake's CLA
  2. Fork this repository
  3. Clone it to your local system
  4. Make a new branch
  5. Make your changes
  6. Push it back to your repo
  7. Open this repository on GitHub.com
  8. Click the Pull Request button to open a new pull request
  9. Snowflake will review and approve the submission

To learn more how to submit a pull request on GitHub in general, checkout github's official documentation.

sfguides's People

Contributors

cassierecher avatar nicolasgarnier avatar shawnbuso avatar jdanielmyers avatar x1ddos avatar mco-gh avatar dragonrider0o0 avatar mmeredith911 avatar keyboardnerd avatar didrocks avatar skaree avatar marcial1234 avatar local-machine avatar bculberson avatar kroikie avatar narphorium avatar bknappgoogle avatar samtstern avatar akshayjpatil avatar hemchander23 avatar skonaads avatar mrc0113 avatar orendain avatar davidscales avatar alexismp avatar wescpy avatar zarinlo avatar willlarche avatar korfuri avatar teeler avatar

Watchers

James Cloos 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.