Sarah0Haras / skills-communicate-using-markdown

Exercise: Communicate using Markdown
MIT License
0 stars 0 forks source link

Exercise: Communicate using Markdown #1

Closed github-actions[bot] closed 3 weeks ago

github-actions[bot] commented 3 weeks ago

Communicate using Markdown

original github octocat

👋 Hey there @Sarah0Haras! Welcome to your Skills exercise!

Organize ideas and collaborate using Markdown, a lightweight language for text formatting.

As you complete each step, I will respond in the comments to:

Good luck and have fun! - Mona

github-actions[bot] commented 3 weeks ago

Step 1: Add headings

What is Markdown? Markdown is a lightweight syntax for communicating on GitHub. You can format text to add a heading, lists, bold, italics, tables, and many other stylings. You can use Markdown in most places around GitHub such as:

What is a heading? A heading is a larger bit of text at the beginning of a section. There are six sizes.

Example

# This is an `<h1>` heading, which is the largest

## This is an `<h2>` heading

###### This is an `<h6>`heading, which is the smallest

This is an <h1> heading, which is the largest

This is an <h2> heading

This is an <h6> heading, which is the smallest

⌨️ Activity: Create a mardkown file

  1. Open a new browser tab, and work on the steps in your second tab while you read the instructions in this tab.

  2. In the top navigation, select the Code tab.

  3. Create a new branch with the following name:

    start-blog
  4. Above the files list, click the Add file button and select Create new file.

  5. Use the following file name.

    day-1.md
  6. In the editor, on the first line use a level one heading to give the page a title.

    # Daily Learning
  7. Add a couple level 2 headings for the names of each of the blog posts.

    ## Morning Planning
    
    ## Review
  8. Above the editor, click the Preview toggle to view the rendered version.

  9. In the top right, click the Commit changes button and commit directly to the start-blog branch.

  10. With our headings created and committed, Mona should be busy reviewing your work and preparing the next steps.

Having trouble? 🤷
- Confirm you are editing the correct file and branch. - Double check your syntax. The must be a space between the `#` and first word.
github-actions[bot] commented 3 weeks ago

Please, follow the steps above.
I'll watch your progress in the background to provide feedback. 🧐

github-actions[bot] commented 3 weeks ago

Step 1 - Passed ✅

Inflatocat image indicating the step passed
Status Description
✅ - Pass day-1.md file exists
✅ - Pass One level 1 heading (#) added to day-1.md
✅ - Pass Two level 2 heading (##) added to day-1.md
github-actions[bot] commented 3 weeks ago

🎉🎉🎉 Nice work! Everything is perfect! 🎉🎉🎉
Preparing content for step 2! One moment... 🤓

github-actions[bot] commented 3 weeks ago

Step 2: Make a list

Markdown supports 3 types of common lists. They include:

Unordered list

An unordered list is simple to show. Each item is placed on its own line using a -, *, or + character.

- Item 1
- Item 2
- Item 3

Ordered List

A list is changed to ordered by using any number instead of the list character. Notice how markdown automatically handles the counting. Nice!

1. Step 1
1. Step 2
1. Step 3
  1. Step 1
  2. Step 2
  3. Step 3

Task List

A task list is extends the unordered list to use check boxes. Add empty brackets [ ] for incomplete tasks and filled brackets [x] for complete tasks. Note: The empty required space for empty brackets.

- [x] This task is complete
- [ ] This task is not complete

[!TIP] Issues and pull requests can use task syntax for conveying progress.

:keyboard: Activity: Add ideas and goals to our morning plan

  1. On the start-blog branch, open the day-1.md file for editing.

  2. Add the following task list below morning planning level two heading to track goals you want to achieve.

    - [ ] Check out the [github blog](https://github.blog/) for topic ideas.
    - [ ] Learn about [GitHub Pages](https://skills.github.com/#first-day-on-github).
    - [ ] Convert my first blog post into an actual webpage.
  3. Use the Preview tab to check your Markdown formatting.

  4. In the top right, click the Commit changes button and commit directly to the start-blog branch.

  5. With our code block committed, Mona should be busy reviewing your work and preparing the next steps.

Having trouble? 🤷
- Confirm you are editing the correct file and branch. - Double check your syntax. The must be a space inside the `[ ]` for task lists.
github-actions[bot] commented 3 weeks ago

Please, follow the steps above.
I'll watch your progress in the background to provide feedback. 🧐

github-actions[bot] commented 3 weeks ago

Step 2 - Passed ✅

Inflatocat image indicating the step passed
Status Description
✅ - Pass Task list added to day-1.md file
github-actions[bot] commented 3 weeks ago

🎉🎉🎉 Nice work! Everything is perfect! 🎉🎉🎉
Preparing content for step 3! One moment... 🤓

github-actions[bot] commented 3 weeks ago

Step 3: Add a code sample

Let's learn about code blocks and syntax highlighting based on the language.

[!TIP] Many programming languages are supported. Try testing out some other file extension types!

Example: Terminal Command

```bash
git clone https://github.com/skills/communicate-using-markdown

```bash
git clone https://github.com/skills/communicate-using-markdown

Example: Javascript Code

```js
var myVar = "Hello, world!";

```js
var myVar = "Hello, world!";

:keyboard: Activity: Adding a code example

  1. On the start-blog branch, open the day-1.md file for editing.

  2. Below Review level two heading add the following entry recording an awesome code snippet you just learned from the GitHub Blog.

    Convert an image or video from dark mode to light mode using [ffmpeg](https://www.ffmpeg.org)
    
    ```bash
    ffmpeg -i input.mp4 -vf "negate,hue=h=180,eq=contrast=1.2:saturation=1.1" output.mp4
  3. Use the Preview tab to check your Markdown formatting.

  4. In the top right, click the Commit changes button and commit directly to the start-blog branch.

  5. With our code block committed, Mona should be busy reviewing your work and preparing the next steps.

Having trouble? 🤷
- Confirm you are editing the correct file and branch. - Double check your syntax. A code block is three backticks ` ``` ` not three apostrophes `'''`
github-actions[bot] commented 3 weeks ago

Please, follow the steps above.
I'll watch your progress in the background to provide feedback. 🧐

github-actions[bot] commented 3 weeks ago

Step 3 - Passed ✅

Inflatocat image indicating the step passed
Status Description
✅ - Pass Code block syntax in day-1.md
github-actions[bot] commented 3 weeks ago

🎉🎉🎉 Nice work! Everything is perfect! 🎉🎉🎉
Preparing content for step 4! One moment... 🤓

github-actions[bot] commented 3 weeks ago

Step 4: Add an image

Let's learn how to include images in markdown, using relative urls, absolute urls, sizing, and basic positioning.

Regular Markdown

Images can be displayed by providing a relative URL to a file in the repository or an absolute URL (to anywhere on the internet).

The descriptive text in the square brackets is displayed if the image is unable to load, and it is also read aloud for people using screen readers.

Note: Markdown syntax doesn't provide an option to change the image size.

Example

Relative URL to an image in the repository:

![Mona the Octocat](myrepo/original.png)

Absolute URL to an image on the internet:

![Mona the Octocat](https://octodex.github.com/images/original.png)
Mona the Octocat

Simple HTML

You will often find the need to reduce the size of an image or simply place it next to some text. Regular HTML syntax provides some additional flexibility.

<img alt="Mona the Octocat" src="https://octodex.github.com/images/original.png"
width="200" align="right">

:keyboard: Activity: Add some decoration

Our blog post is quite simple right now. Let's add some decoration.

  1. On the start-blog branch, open the day-1.md file for editing.

  2. Insert an image below the Morning Planning level 1 heading.

    ![Cloudy morning](https://octodex.github.com/images/cloud.jpg)
  3. Use the Preview tab to check your Markdown formatting.

    • Notice the image is too large for our purpose.
  4. Replace the simple markdown version with an HTML version that includes size and position info. Much better!

    <img alt="Cloudy morning" src="https://octodex.github.com/images/cloud.jpg" width="100" align="right">
  5. In the top right, click the Commit changes button and commit directly to the start-blog branch.

  6. With our image added and committed, Mona should be busy reviewing your work and preparing the next steps.

Having trouble? 🤷
- Confirm you are editing the correct file and branch. - Double check your syntax. An HTML image tag must start with `img` and include the `src` property.
github-actions[bot] commented 3 weeks ago

Please, follow the steps above.
I'll watch your progress in the background to provide feedback. 🧐

github-actions[bot] commented 3 weeks ago

Step 4 - Passed ✅

Inflatocat image indicating the step passed
Status Description
✅ - Pass HTML image added to day-1.md
github-actions[bot] commented 3 weeks ago

🎉🎉🎉 Nice work! Everything is perfect! 🎉🎉🎉
Preparing content for step 5! One moment... 🤓

github-actions[bot] commented 3 weeks ago

Step 5: Finish work

With our first blog post finished, let's merge it into the main branch.

:keyboard: Activity: Merge blog post

  1. In the top navigation, select the Pull requests tab.

  2. Create a new pull request, using main and compare:start-blog for the branch details.

  3. (Optional) Set a clear title and description for the pull request.

  4. Scroll down and click the Merge button.

  5. Click Merge pull request.

  6. With the pull request merged, Mona will prepare the final review. Nice work! You are done! 🎉

github-actions[bot] commented 3 weeks ago

Please, follow the steps above.
I'll watch your progress in the background to provide feedback. 🧐

github-actions[bot] commented 3 weeks ago

Review

celebrate

Congratulations! You've completed this exercise!

Here's a recap of the tasks you've accomplished in this exercise:

  1. You added headings to organize content.
  2. You added a tasks list to a plan.
  3. You saved a code snippet in your review for future use.
  4. You added an image to your plan to make it prettier.
  5. And finally, you created finished a blog post using Markdown syntax.

What's next?

github-actions[bot] commented 3 weeks ago

Congratulations @Sarah0Haras! You finished the exercise! 🎉🎉🎉

We've updated the repository with a couple changes to highlight your success!

Return to the repository home page to see your progress!