Git Product home page Git Product logo

github-docs-example's Introduction

Writing Good Documentation

Step 1 - Using codeblocks

Codeblocks in markdown make it very easy for tech people to copy, paste, share code. A good Cloud engineer uses Codeblocks whenever possible.

Because it allows others to copy and paste their code to replicate or research issues.

In order to create codeblocks in markdown, you need three backticks (`) Not to be confused with quotation.

# Define the Person class
class Person
  attr_accessor :name

  def initialize(name)
    @name = name
  end

  def greet
    "Hello, #{@name}! Nice to meet you."
  end
end

# Create an instance of the Person class
john = Person.new("John")

# Print out a greeting
puts john.greet  # Output: Hello, John! Nice to meet you.

  • When you can you should attempt to apply syntax highlighting to your codeblocks.
# Define the Person class
class Person
  attr_accessor :name

  def initialize(name)
    @name = name
  end

  def greet
    "Hello, #{@name}! Nice to meet you."
  end
end

# Create an instance of the Person class
john = Person.new("John")

# Print out a greeting
puts john.greet  # Output: Hello, John! Nice to meet you.

del

  • Make note of where that learning never ends.
  • It is a constant challenge to develop yourself and strive for excellence.
  • You are the master of your destiny.

Good cloud engineers use code blocks for both Code and Errors that appear in the console. Here is an example of y=using a codeblock that appweras in bash.

RuntimeError: Division by zero error!
        from (irb):2:in `divide'
        from (irb):5
        from /usr/bin/irb:11:in `<main>'

Here is an example of y=using a codeblock that appears in bash.

Step 2 - How to take screenshots

A screenshot is when you capture part of your screen from your laptop, desktop or phone.

This is not to be confused with a photo with your phone.

DON'T DO THIS

Step 3 - Use Github Flavoured Task Lists

Github extends Markdown to have a list where you can check off items. [1]

  • Finish Step 1
  • [] Finish Step 2
  • Finish Step 3

Step 4 - Use Emojis (Optional)

Github Flavoured Markdown (GFM) supports emoji shortcodes. Here are some examples:

Name Shortcode Emoji
Cloud :cloud: ☁️
Alarm Clock :alarm_clock:
Cloud with Loghtning :cloud_with_lightning: 🌩️

Step 5 - How to create a table.

You can use the following markdown format to create tables.

| Name | Shortcode | Emoji |
| --- | --- |  --- |
| Cloud | `:cloud:`| :cloud:|
| Alarm Clock | `:alarm_clock:`| :alarm_clock:|
| Cloud with Loghtning | `	:cloud_with_lightning:`|	:cloud_with_lightning:|

Github extends the functionality of Markdown tables to provide more alignment and table cell formatting options. [2]

Secret Window Hidden Garden

External References

github-docs-example's People

Contributors

serverthread avatar

Watchers

 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.