Deploy Site Template
A template for new GitHub pages site.
Usage
Follow this guide to create a new GitHub pages site from this template. Install and configure Typerefinery to deploy the site to GitHub pages.
Create a new repository from this template
- Click the
Use this template
button on the github page. - Set the repository name and description.
- Click the
Create repository from template
button. - Click the
Code
button and copy the HTTPS repository Url and save it.
Create a personal access token
- Go to the Personal access tokens page.
- Click the
Generate new token
button. - Set the token description.
- Select the
repo
scope. - Click the
Generate token
button. - Copy the generated token and save it.
Download and install Typerefinery
- Go to the Typerefinery Latest Release page. In the Assets section, download the installer for your platform.
- Install the app.
- Run the app.
- Wait for the app to finish setting up your services.
- When you see Ready in the app, open a web browser and open CMS Homepage on [http://localhost:8113].
Create new Site
- In a web browser, open CMS Homepage on http://localhost:8113.
- Login with the default credentials:
admin
andadmin
. - Click the
Create space
button and choosePages
. - Set the space
Title
, lowercaseName
, and selectTyperefinery pages
inTemplate
. - Click on the newly created space.
Create new Space Config
- Click
Create page
button. - On
Template selection
chooseSpace Config
template. - On
Page properties
onGeneral
tab:- set the page
Title
toSpace Config
, and - set
Name
to lowercase_admin
.
- set the page
- On
Page properties
onDeploy
tab:- select
Github
inDeploy Target
, and - in
Additional Paths to Publish
add a new Path entry with/apps/typerefinery/clientlibs
.
- select
- On
Page properties
onGithub
tab:- paste your repository Url into
Repository URL
in formathttps://github.com/user/repo
. - paste your personal access token into
Personal Access Token
. - set the
Branch
togh-pages
. - set User and Email to your github user and email.
- paste your repository Url into
- Return to CMS on http://localhost:8113.
- On your new space click on the
...
button and selectPublish space
. - On
Publish space
dialog selectAll
inPublish Options
, click onDeploy after Publish
toggle, and clickPublish
button. - Wait for the space to be published and deployed.
- Check GitHub repository
gh-pages
branch for the new files.