mirror of
https://github.com/boostorg/website-v2-docs.git
synced 2026-01-19 04:42:17 +00:00
simplify boostlook css importing (#432)
remove css/branch specific handling in favor of single source
This commit is contained in:
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -113,8 +113,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
# Comment out dynamic branch selection for now
|
# Comment out dynamic branch selection for now
|
||||||
# BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
|
BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
|
||||||
export BOOSTLOOK_BRANCH="${{ github.event.inputs.boostlook_branch || 'master' }}"
|
export BOOSTLOOK_BRANCH
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
- name: Setup Ninja
|
- name: Setup Ninja
|
||||||
|
|||||||
@@ -244,10 +244,6 @@ function getAllTasks (opts, sourcemaps, postcssPlugins, preview, src) {
|
|||||||
|
|
||||||
In CI, the file won't be available so it always
|
In CI, the file won't be available so it always
|
||||||
uses the most recent version.
|
uses the most recent version.
|
||||||
|
|
||||||
CSS Branch handling:
|
|
||||||
- master: Uses production version of boostlook styling
|
|
||||||
- develop: Uses Tino Agency's redesign work for staging deployment
|
|
||||||
*/
|
*/
|
||||||
async function fetchBoostlookCss () {
|
async function fetchBoostlookCss () {
|
||||||
log('Fetching boostlook.css file...')
|
log('Fetching boostlook.css file...')
|
||||||
@@ -255,8 +251,7 @@ async function fetchBoostlookCss () {
|
|||||||
const cssDir = ospath.join(__dirname, '..', '..', 'src', 'css')
|
const cssDir = ospath.join(__dirname, '..', '..', 'src', 'css')
|
||||||
const cssFilePath = ospath.join(cssDir, 'boostlook.css')
|
const cssFilePath = ospath.join(cssDir, 'boostlook.css')
|
||||||
const boostlookBranch = process.env.BOOSTLOOK_BRANCH || 'master'
|
const boostlookBranch = process.env.BOOSTLOOK_BRANCH || 'master'
|
||||||
const sourceFilename = boostlookBranch === 'develop' ? 'boostlook_tino.css' : 'boostlook.css'
|
const url = `https://raw.githubusercontent.com/boostorg/boostlook/${boostlookBranch}/boostlook.css`
|
||||||
const url = `https://raw.githubusercontent.com/boostorg/boostlook/${boostlookBranch}/${sourceFilename}`
|
|
||||||
|
|
||||||
if (skipBoostlook) {
|
if (skipBoostlook) {
|
||||||
log('Skipping boostlook.css download due to --skip-boostlook flag.')
|
log('Skipping boostlook.css download due to --skip-boostlook flag.')
|
||||||
|
|||||||
Reference in New Issue
Block a user