This is a viewpress theme, populated with sample portfolio items. The theme currently supports the plugins: medium-zoom, google-analytics and custom-container. The theme is also customizable (see below).
- Clone the repo.
- Open terminal in the root directory and run
npm install
- Copy the
.env.example
file at the root directory and change all the environment variablescp .env.example .env nano .env
- To run the project you can use one of the following options:
- Run the project in docker
docker-compose up
- Run the project locally
npm run docs:dev
- Run the project in docker
- Your project will be available in https://localhost:8080
- Open
docs/.viewpress/config.js
. - Edit title, description, favicons, social links etc.
- Refer to font-awesome library if you want to add custom icons in the social links list.
- Open
docs/README.md
and edit home page content.
- In
docs > project
folder add a markdown file for each of your project. - You can customize the metadata in the top of the file to customize portfolio item page. Have a look at the sample portfolio items in the repo.
- Open
docs/.viewpress/theme/style/index.styl
file. - At the top of the file, you can see all of the color options that you can modify. Edit them according to your need.
There are 2 ways to deploy
- Open
.github/workflows/deploy.yml
. - Edit the target repository where your portfolio will be hosted:
destination-github-username: <YOUR TARGET USERNAME> destination-repository-name: <YOUR TARGET REPO NAME> user-name: <YOUR COMMIT USERNAME> target-branch: <YOUR TARGET BRANCH>
- Open your current github repo page where this current project is hosted.
- Go to Settings > Secrets and variables > Actions > New repository secret.
- Add your github personal access token in a variable called
PORTFOLIO_REPOSITORY_PERSONAL_ACCESS_TOKEN
. - From now on, when you make a new commit, github should automatically deploy into the target repo.
- Open
deploy.sh
. - Replace all references of
https://github.com/alamkanak/alamkanak.github.io.git
with your repo URL where you want to deploy. - Replace all references of
alam
with your local machine user name. - To deploy, run one of the following:
- If running npm on your local environment:
sudo sh deploy.sh
- If running on docker:
# get container ID docker ps # go into docker terminal docker exec -it <container_name> sh # setup git git config --global user.email "you@example.com" git config --global user.name "Your Name" # deploy sh deploy.sh # exit exit
- If running npm on your local environment: