1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00

updated readme

This commit is contained in:
imfunny 2019-05-23 15:33:37 +05:30 committed by GitHub
parent b2b757442f
commit fb00959194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ npm i gitfolio -g
```sh ```sh
gitfolio build <username> gitfolio build <username>
``` ```
This will build your website using your GitHub username and put it in the `/dist` folder. <username> is your username on github. This will build your website using your GitHub username and put it in the `/dist` folder.
To run your website use `run` command (please refrain from using this for now) To run your website use `run` command (please refrain from using this for now)
@ -41,24 +41,24 @@ gitfolio build <username>
To include forks on your personal website just provide `-f` or `--fork` argument while building To include forks on your personal website just provide `-f` or `--fork` argument while building
``` ```sh
$ gitfolio build username -f $ gitfolio build <username> -f
``` ```
#### Sorting Repos #### Sorting Repos
To sort repos provide `--sort [sortBy]` argument while building. Where `[sortBy]` can be `star`, `created`, `updated`, `pushed`,`full_name`. Default: `created` To sort repos provide `--sort [sortBy]` argument while building. Where `[sortBy]` can be `star`, `created`, `updated`, `pushed`,`full_name`. Default: `created`
``` ```sh
$ gitfolio build username --sort star $ gitfolio build <username> --sort star
``` ```
#### Ordering Repos #### Ordering Repos
To order the sorted repos provide `--order [orderBy]` argument while building. Where `[orderBy]` can be `asc` or `desc`. Default: `asc` To order the sorted repos provide `--order [orderBy]` argument while building. Where `[orderBy]` can be `asc` or `desc`. Default: `asc`
``` ```sh
$ gitfolio build username --sort star --order desc $ gitfolio build <username> --sort star --order desc
``` ```
#### Customize Themes #### Customize Themes
@ -70,16 +70,16 @@ Themes are specified using the `--theme [theme-name]` flag when running the `bui
> TODO: Add more themes > TODO: Add more themes
For example, the following command will build the website with the dark theme For example, the following command will build the website with the dark theme
``` ```sh
$ gitfolio build username --theme dark $ gitfolio build <username> --theme dark
``` ```
#### Customize background image #### Customize background image
To customize the background image just provide `--background [url]` argument while building To customize the background image just provide `--background [url]` argument while building
``` ```sh
$ gitfolio build username --background https://images.unsplash.com/photo-1557277770-baf0ca74f908?w=1634 $ gitfolio build <username> --background https://images.unsplash.com/photo-1557277770-baf0ca74f908?w=1634
``` ```
You could also add in your custom CSS inside `index.css` to give it a more personal feel. You could also add in your custom CSS inside `index.css` to give it a more personal feel.
@ -96,7 +96,7 @@ Go To `username.github.io` your site should be up!!
To update your info, simply run To update your info, simply run
``` ```sh
$ gitfolio update $ gitfolio update
``` ```
This will update your info and your repository info. This will update your info and your repository info.
@ -108,7 +108,7 @@ To Update background or theme you need to run `build` command again.
To add your first blog run this command. To add your first blog run this command.
``` ```sh
$ gitfolio blog my-first-blog $ gitfolio blog my-first-blog
``` ```
> (use "-" instead of spaces) > (use "-" instead of spaces)