1. Project management¶
This week was the first week into the course. We started with working on the website and learning basics about how it works and how to apply changes to it.
To begin with, we learned how to run pipelines, which is a one-time step you you’ll have to go through when you first create the website.
After that, we learned how to access our websites, edit ‘about me’ in the website, upload images and apply them to the website, cloning our websites, using visual studio, and finally changing colors of our website. So, I’ll go through each and every one of those in details and steps.
Accessing your website
- Go to deploy
-
Click pages
-
Under the “access pages” will be the link of the website
Editting the ‘About me’ page in the website
- Go to Docs
- Click about
- Go to index
- Click edit single file
-
Apply whatever changes you want to make
-
After you apply changes, click commit changes at the bottom of the page
Note: Changes might need a few seconds to occur in the website!
Uploading images to the website
- You’ll have to go to: docs > images > select the folder you wish to upload the image in (eg: week 1)
- Upload image by clicking on the little ‘+’sign
- Drop or add the file you need, click ‘upload file’ and your image will be ready to use.
Notes:
- Make sure the image is perfect for use, resize it for it to be usable and suitable enough.
- Rename it into something easier and preferably shorter to copy and paste into the file.
The last thing we had to do after uploading the images was applying the image into the file itself where it occurs in the website
-
docs > about > index > edit single file
-
Use the code for images while considering changing the image file name at the end of the code to get the image desired
- Commit changes, and you’ll have the images uploaded after a few seconds
**Cloning our websites **
In order to clone your website by using HTTPS, you need to have gitbit downloaded on your device before anything.
-
Create a new folder on your desktop
-
On GitHub.com, go to the main page of the repository
-
Click code
-
Copy the URL link under HTTPS
-
Open GitBash
-
Type gitclone, and then paste the URL you copied earlier from the website
-
Press enter
-
After the log in box appears, insert your username and password,
Now, you finally have your website cloned!
How to push to the site by using Visual Studio
-
Open Visual Studio
-
Click file > open folder
-
Open git bit folder that you created earlier
-
In Visual Studio, go to explorer > docs > about > index > apply any change in the website
-
Go to source control in Main Panel > click Terminal
-
In the box, type git config -global user.name “firstname lastname” > prss enter
-
Then, type git config -global user.email “my-name@example.com”
-
Press Commit and Push
Changing the color of the website
-
On the main page, find mkdocs.yml
-
Copy and paste the link for colors in a new tab https://squidfunk.github.io/mkdocs-material/getting-started/#primary-colors
-
Click setup
-
Find appearance > colors
-
You can try different colors and pick the color you’d like to apply to the website just by clicking on each color
-
Change name of color by copy pasting the color name in mkdocs.yml