Giter Site home page Giter Site logo

sshyran / docslikecode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justwriteclick/docslikecode

0.0 2.0 0.0 43.55 MB

Read stories, learn through practice, share with others, to treat docs as code.

Home Page: https://www.docslikecode.com

License: MIT License

Ruby 34.57% HTML 61.29% Shell 4.14%

docslikecode's Introduction

Docs Like Code

The Website

This website is intended to offer stories and articles about how to treat docs like code, and lessons learned along the way. You are welcome to tell your story here as well.

To Contribute

You can directly submit a pull request using the fork-and-pull workflow to add an article, or submit to the justwriteclick/docs-like-code-stories repo if you want to follow a question-and-answer template.

Pushing to the build branch lets you preview the build output using Netlify. You must log into Netlify to view the preview deploy.

Pushing to the master branch builds output to https://www.docslikecode.com using Netlify. Auto publishing is on as a setting in Netlify, so deploys from master are published automatically.

Theme Colophon

Theme courtesy of https://mmistakes.github.io/so-simple-theme/

To Build Locally (MacOS)

Test your additions and changes to content by running a local build.

On macOS you need to install brew, bundler.io, and Ruby version manager so that you can use a particular version of Ruby:

  1. Use brew to install a Ruby version manager.

    $ brew install rbenv ruby-build
    
  2. Add rbenv to bash so that it loads every time you open a terminal. If you are using macOS Catalina, your profile file may be .zshrc.

    $ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
    

    or

    $ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
    
  3. Source your .bash_profile file. If you are using macOS Catalina, your profile file may be .zshrc.

    $ source ~/.bash_profile
    

    or

    $ source ~/.zshrc
    
  4. Install the required Ruby version:

    $ rbenv install 2.7.1
    $ rbenv global 2.7.1
    $ rbenv version
    

    In return, you should see ruby 2.7.1 2.7.1 (set by /Users/username/docslikecode/.ruby-version.

  5. Run gem install bundle to install the bundler gem, which helps with Ruby dependencies.

  6. Run bundle install the first time you are in the docslikecode directory.

To build locally: Once you have completed preparing your environment, then you can build locally and review the site in your browser.

  1. Run the serve command.

    $ bundle exec jekyll serve
    
  2. Use the Server address URL http://127.0.0.1:4000/ in a browser to preview the content.

  3. Press Ctrl+C in the serve terminal to stop the server.

Tip
Leave the serve terminal open and running. Every time you save changes to a file, it automatically regenerates the site so you can test the output immediately. The only file where changes require a restart is the _config.yml file.

docslikecode's People

Contributors

annegentle avatar agentlecisco avatar diana-lakatos avatar padraigobrien avatar bmansheim avatar dependabot[bot] avatar balsamiqleon avatar mjmurphy avatar delfco avatar

Watchers

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