Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors