Skip to content

Commit

Permalink
fix(documentation): summary tag are now default to display as list item
Browse files Browse the repository at this point in the history
- because of bootstrap 3.4, summary tags are displayed as block
- this should be a temporary fix until we update docfx and bootstrap
- the map files are now pushed to production
  • Loading branch information
alextrepa committed Oct 25, 2023
1 parent 5ed505c commit 8c3f1f6
Show file tree
Hide file tree
Showing 11 changed files with 24,039 additions and 24 deletions.
2 changes: 0 additions & 2 deletions doc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
/**/obj/
_site
_exported_templates
package-lock.json
yarn.lock

# Markdown files generated by Uno.UWPSyncGenerator.DocGenerator
/articles/implemented
Expand Down
31 changes: 13 additions & 18 deletions doc/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const sass = require('gulp-sass');
const uglify = require('gulp-uglify');
const concat = require('gulp-concat');
const postcss = require('gulp-postcss');
const gulpif = require('gulp-if');
const del = require('del');
const sourcemaps = require('gulp-sourcemaps');
const stripImportExport = require('gulp-strip-import-export');
Expand All @@ -14,29 +13,28 @@ const exec = require('child_process').exec;

const assets = 'templates/uno';

let isDebug = false;
let isStrict = false;

function styles(done) {
const output = isDebug ? 'nested' : 'compressed';
const output = 'compressed';

src([`${assets}/vendor/*.css`])
.pipe(dest(`${assets}/styles/`));

src([`${assets}/**/*.scss`, `${assets}/**/*.sass`])
.pipe(gulpif(isDebug, sourcemaps.init()))
.pipe(sourcemaps.init())
.pipe(
sass({includePaths: ['./node_modules/'], outputStyle: output}).on(
'error',
sass.logError
)
)
.pipe(postcss([autoprefixer]))
.pipe(gulpif(isDebug, sourcemaps.mapSources(function (sourcePath) {
.pipe(sourcemaps.mapSources(function (sourcePath) {
return '../' + sourcePath;
})))
}))
.pipe(concat('main.css'))
.pipe(gulpif(isDebug, sourcemaps.write()))
.pipe(sourcemaps.write('.'))
.pipe(dest(`${assets}/styles/`))
.pipe(notify({message: 'CSS complete'}));

Expand All @@ -61,7 +59,9 @@ function docfx(done) {

function scripts(done) {
src([`${assets}/main.js`])
.pipe(gulpif(!isDebug, uglify()))
.pipe(sourcemaps.init())
.pipe(uglify())
.pipe(sourcemaps.write('.'))
.pipe(stripImportExport())
.pipe(dest(`${assets}/styles/`));

Expand All @@ -73,10 +73,10 @@ function scripts(done) {
`!${assets}/conceptual.html.primary.js`,
`!${assets}/main.js`,
`!${assets}/vendor/*.js`])
.pipe(gulpif(isDebug, sourcemaps.init()))
.pipe(sourcemaps.init())
.pipe(uglify())
.pipe(concat('docfx.js'))
.pipe(gulpif(isDebug, sourcemaps.write()))
.pipe(gulpif(!isDebug, uglify()))
.pipe(sourcemaps.write('.'))
.pipe(dest(`${assets}/styles/`));

done();
Expand Down Expand Up @@ -114,11 +114,6 @@ async function clean(done) {
done();
}

function useDebug(done) {
isDebug = true;
done();
}

function useStrict(done) {
isStrict = true;
done();
Expand All @@ -133,6 +128,6 @@ exports.default = series(build, run);

exports.clean = series(clean);

exports.debug = series(useDebug, build, run);
exports.debug = series(build, run);

exports.strict = series(useDebug, useStrict, build, run);
exports.strict = series(useStrict, build, run);
Loading

0 comments on commit 8c3f1f6

Please sign in to comment.