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: |
|
||||
set -x
|
||||
# Comment out dynamic branch selection for now
|
||||
# BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
|
||||
export BOOSTLOOK_BRANCH="${{ github.event.inputs.boostlook_branch || 'master' }}"
|
||||
BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
|
||||
export BOOSTLOOK_BRANCH
|
||||
./build.sh
|
||||
|
||||
- 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
|
||||
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 () {
|
||||
log('Fetching boostlook.css file...')
|
||||
@@ -255,8 +251,7 @@ async function fetchBoostlookCss () {
|
||||
const cssDir = ospath.join(__dirname, '..', '..', 'src', 'css')
|
||||
const cssFilePath = ospath.join(cssDir, 'boostlook.css')
|
||||
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}/${sourceFilename}`
|
||||
const url = `https://raw.githubusercontent.com/boostorg/boostlook/${boostlookBranch}/boostlook.css`
|
||||
|
||||
if (skipBoostlook) {
|
||||
log('Skipping boostlook.css download due to --skip-boostlook flag.')
|
||||
|
||||
Reference in New Issue
Block a user