A resumé built with Vue 3 and vite.js. See current results by visiting this link
@vueuse
and@tailwindcss
to implement dark mode functionality on the created page.
-
(If it doesn't exist) create a file named
vite.config.js
in root directory and add the following code:import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ base: '/<REPO-NAME>/', plugins: [vue()] })
Make sure to replace
<REPO-NAME>
with the name of the relevant repository. -
Run the following command in terminal:
npm run build
This command should create a
dist
folder in root directory. -
After verifying that the folder is created, run the following two git commands in terminal to stage the
dist
folder for committing:git add dist -f git commit -m "Adding dist subtree"
The
-f
is to force the folder to be staged, otherwise it will be ignored by.gitignore
. the second command commits the folder. -
Now, to deploy the
dist
folder, run the following git command in terminal:git subtree push --prefix dist origin gh-pages
This command will push the
dist
folder to the branch namedgh-pages
. -
(In the web browser) navigate to the settings of the repository that contains the code for the Vue application. From there navigate to
Pages
and under the sectionBuild and deployment
setup the source to beDeploy from a branch
as shown in the image below: -
After that, choose the branch of which the build and deployment will be performed, in this case it should be the branch that the folder
dist
was pushed to, which was namedgh-pages
: -
Done. The results of the deployed page should be visible in the link that should be shown in the Pages page, or one can navigate to the page that should look something like this URL:
https://<GITHUB-USERNAME>.github.io/<REPO-NAME>/
where<GITHUB-USERNAME>
is to be replaced by the user's username and the<REPO-NAME>
by the name of the repository that contains the Vue application.
If any of the information provided above is inaccurate or doesn't show the expected result, please open an issue linking to the github repository in question.