This is a simple script that generates 10 unique static HTML pages.
- Node.js (v14.0 and above)
- Node Package Manager (npm v8.0 and above)
To generate the static HTML pages, run the following command:
- Clone the repository
git clone https://github.com/AyushIyankan/Skillbee.git
- Install required dependencies
npm install
- Start script
npm start
- You can see html files generated under ./src/pages. On each run, script will generate 10 unique html files.
- Host the pages to github pages and destination url will be of form: https://username.github.io/reponame/src/pages/<filename.html>
- numberOfPages is defined in script, currently the script generates 10 unique web pages but under name website-i.html where i ranges from 1 to 10. In case you need to change the number of unique pages generated everytime just change the variable value.
- Current configuration is to generate 10 unique pages everytime by replacing website-i.html where i ranges from 1 to 10. In case you need to persist old web pages generated, just comment out
and uncomment the line
const filename = `website-${fileIndex++}.html`;
in generatePages.jsconst filename = `page-${activity.toLowerCase().split(" ").join("-")}.html`;
- If you have used the format
then url will be of form
const filename = `website-${fileIndex++}.html`;
where i ranges from 1 - 10https://ayushiyankan.github.io/Skillbee/src/pages/<website-${i}>.html
- Instead if you have used the format
then url will be of form
const filename = `page-${activity.toLowerCase().split(" ").join("-")}.html`;
https://ayushiyankan.github.io/Skillbee/src/pages/<page-${lowercase-chained-format}>.html
Hosted Links:
Link website-1
Link website-2
Link website-3
Link website-4
Link website-5
Link website-6
Link website-7
Link website-8
Link website-9
Link website-10