This is a repo of the Capstone project at the Innopolis University - https://capstone.innopolis.university/
Table of contents
Throughout the project, you will be required to write progress reports. These reports will be published on the Capstone project website. To contribute to the website, you will need to follow these steps:
-
One of the team member (e.g.
john5000
) should fork this repository under the name of the team (e.g.dream-team
). This will create a copy of the repository under the namejohn5000/dream-team
. -
Install latest version of Hugo on your local machine. Also, make sure you have a code editor installed. VSCode is recommended, but you may use the one you prefer.
-
Clone the forked repository with submodules to your local machine using
git clone --recursive https://github.com/john5000/dream-team
To start the website localy, run
hugo server --minify --theme=hugo-book
The last line in the terminal output should look like
Web Server is available at http://localhost:port/ (by default: http://localhost:1313/)
Visit http://localhost:port
in your browser to access your local instance of the website. Now all of you changes in the website's source code should be propagated automatically.
We set up a few rules to make the contribution process as smooth as possible:
-
When you firstly clone the repository, you should create a folder with your group name (same as the name of the forked repository e.g.
dream-team
) in bothcontent/docs/$YEAR/
andstatic/$YEAR/
(e.g.content/docs/2024/dream-team
andstatic/2024/dream-team
). This is where you will store your progress reports and static content respectively. Note, that if you modify any other files, you will not pass the CI/CD pipeline and your changes will not be merged. -
For each progress report you will have to create respective markdown file (e.g.
content/docs/2024/dream-team/week1.md
). -
You should create
_index.md
file in your group folder (e.g.content/docs/2024/dream-team/_index.md
) with the following content:
---
bookCollapseSection: true
title: "Dream Team"
---
After you feel you have made enough changes, run
git add .
to stage all changes, then
git commit -m "Your very informative progress report that describes the changes you've made"
to commit your changes to the local repository. Finally, run
git push
to push your changes to the remote repository or
git push --set-upstream origin your-branch-name
if you are pushing for the first time.
Now that you have made your changes, you will need to properly submit them so that no merge conflicts happen.
Instructions to merge your branch with the master branch
- Open your github repo (e.g. https://github.com/john5000/dream-team)
- Click on
Contribute
button - Click on
Open pull request
- Make sure that the base repository is
IU-PR/Capstone_project
and the base branch ismaster
- Make sure that the head repository is your repository name (e.g.
john5000/dream-team
) and the head branch isyour-branch-name
- Name your pull request in a format
My_Cool_Project_Group_Name (Week X): Very short description
- Once done, press
Create pull request
- Make sure that the CI/CD pipeline has passed. If not, fix the errors and push the changes again to your branch (you don't need to create a new pull request, just push the changes to your branch)
- You can preview your changes by clicking on
Deploy preview
link provided by netlify bot in the pull request comments - Done! Admins will review your work and merge your changes into the main repo soon
This blog template uses a handful of shortcodes. Shortcode (in a nutshell) is "mark" inside your markdown code that enables certain features within its code block. For example, you can define a codeblock of LaTeX code that renders LaTeX formulas. You can also define a codeblock that describes a structure of a graph. Below are example of these two.
How to write in LaTeX:
{{<katex>}}
your latex formula
{{</katex>}}
This produces an inline formula. If you want to center your formula, use display
property like so:
{{<katex display>}}
your centered latex formula
{{</katex>}}
How to create graphs:
- Take a look at Mermaid syntax
- Pick a graph you want to use
- Write necessary code
Ex:
{{<mermaid>}}
gitGraph
commit
commit
branch develop
commit
commit
commit
checkout main
commit
commit
{{</mermaid>}}
will be rendered as
gitGraph
commit
commit
branch develop
commit
commit
commit
checkout main
commit
commit
Refer to Mermaid documentation for examples.
To embed a PDF file, use the following shortcode:
{{< embed-pdf url="/2024/dream-team/some-file.pdf" >}}
This project's shortcodes and their descriptions can be found in layouts/shortcodes
. They all use the same syntax:
{{<shortcode>}}
...stuff/..
{{</shortcode>}}
Try them out if you think they are useful in your progress reports.