bem-site / bem.info Goto Github PK
View Code? Open in Web Editor NEWbem.info web site
Home Page: https://bem.info
bem.info web site
Home Page: https://bem.info
После безошибочной установки запускаю проект с помощью gulp вылетает ошибка
~/allprojects/01_BEM/bem.info $ gulp
[09:03:06] Using gulpfile ~/allprojects/01_BEM/bem.info/gulpfile.js
[09:03:06] Starting 'watch'...
[09:03:06] Finished 'watch' after 15 ms
[09:03:06] Starting 'browser-sync'...
bs
[09:03:07] Finished 'browser-sync' after 48 ms
[09:03:07] Starting 'default'...
[09:03:07] 'default' errored after 482 ms
[09:03:07] Error: Cannot find module './desktop.bundles/index/index.bemtree.js'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Gulp. (/home/roman/allprojects/01_BEM/bem.info/gulpfile.js:31:17)
at module.exports (/home/roman/allprojects/01_BEM/bem.info/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/home/roman/allprojects/01_BEM/bem.info/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/home/roman/allprojects/01_BEM/bem.info/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
at /home/roman/allprojects/01_BEM/bem.info/node_modules/gulp/node_modules/orchestrator/index.js:279:18
at finish (/home/roman/allprojects/01_BEM/bem.info/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)
events.js:141
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'desktop.bundles/index/index.min.css'
at Error (native)
"published": true надо сделать значением по умолчанию и не использовать его для каждой страницы в модели. А вот "published": false указывать.
gulp
, дождаться окончания сборки.md
показываются нормальноgulp
gulp
ещё раз.md
показываются без контентаБыло обещано, что если интернета нет, используется последняя актуальная версия кеша, чего сейчас не происходит.
Надо сделать так, чтобы можно было разрабатываться в самолёте.
Использовать блок yandex-metrika
из библиотеки https://github.com/bem-contrib/stat-counters
In Firefox browser lang switcher and forum links fall down below header (I think we need to change float: right to flex).
Долго не мог понять причину, почему сломался мой ссылочный переопределятор.
Нашел проблему вот в этом коде: https://github.com/vithar/bem.info/blob/master/lib/marked-opts.js#L10-L13
renderer._link = renderer.link;
renderer.link = function(href, title, text) {
return this._link(href.replace(/(.*\/)([^\/#]*)(.*)/, '$1$3'), title, text);
};
Здесь происходит замена ссылок, которая нарушает логику переопределятора.
Regression.
Увеличилось время пересборки страниц. Раньше на изменения в *.blocks
вызывался только enb
, сейчас enb-make
, drop-templates-cache
и build-html
. Надо вернуть сборку как было, делая минимальный набор действий для обработки изменений.
/cc @tormozz48
Раз используем gulp, то нужно использовать его возможности по полной.
Например, вместо
gulp.task('copy-misc-to-output', ['clean-output'], () => {
return Q.all([
copyFileToOutputDirs('./content', 'favicon.ico'),
copyFileToOutputDirs('./content', 'robots.txt')
]);
});
делать что-то типа
gulp.task('copy-misc-to-output', ['clean-output'], () => {
return gulp.src('content/{favicon.ico,robots.txt}')
.pipe(gulp.dest('output-{' + LANGUAGES.join() + '}'));
});
и, соответственно, выпилить кастомщину про copyFileToOutputDirs и т.п.
Из соображений перфекционизма, хочется все вариации md-plug переименовать в markedOpts (включая имена файлов: marked-opts.js).
Пока сделал грязный хак для ускорения запуска:
vithar@d9634a4
см. текущий bem.info
После подключения использования горшочка перестала показываться страница /community/typo/ в обоих языках. Кажется локальный .md не обрабатывается или обрабатывается некорректно.
It should be done in runtime or removed.
Лайки, шары, вот это все
Regression.
Дико бесит и не позволяет нормально разрабатываться. Помогает только перезапуск gulp.
По умолчанию ничего не выводить в консоль, а показывать только ошибки.
Articles list with links to external bem articles.
Не вижу необходимости в хранении директорий data-* в корне проекта, предлагаю перенести их в .gorshochek.
nobr
for i-bem
in Справочное руководство по i-bem.js
in sitemap
block.search__form .input__control
to color: #fff
Вместе с классным редизайном ru.bem.info прилетел баг
Раздел форум https://ru.bem.info/forum/
Теперь на айпаде (обычный 10 дюймов с ретиной) верстка шапки поехала и контент уехал вниз. Я сразу и не понял увидев пустой экран, но прокрутив вниз все стало понятно.
Ниже скриншоты, помогут понять суть бага
Проверялось в хроме и сафари
В браузере Хром
@veged предлагает на промо странице /methodology/ после каждой фичи добавить возможность перейти сразу в документацию, не долистывая страниницу до конца.
Т.е. если на середине страницы я понял, что уже «всё купил» — нужна возможность куда-то кликнуть и начать читать.
Варианты?
У меня был реализован механизм указания картинок по относительному пути рядом с .md (см. https://github.com/bem/bem-method/tree/bem-info-data/method/key-concepts)
В новой версии этот механизм утерян, надо вернуть как было: при обработке .md файла копировать все картинки рядом с ним в его результирующую папку и ссылаться на картинки относительно, без указания хоста:
<img src='key-concepts__head_marked.png' alt=''>
Add promo strip
block on top of everything else on a page (even before header
).
Something like
{
block: 'stripe',
tag: 'a',
attrs: { href: 'http://promo.com/', style: 'display: block; line-height: 22px; font-size: 16px; color: #fff; background: #ff0' },
content: 'Attention! See what is happening!'
}
but implemented properly ;)
stripe
should configurable via model. It should be possible to specify an array of different content/url/color for it with optional expiration date to rotate it automatically.
@vithar, should we rotate stripes on client side it there's more then one active at a time?
Нужно перенести все .js файлы (кроме gulpfile.js) в директорию lib.
Нужно для нормальной работы сайта на gh-pages
и для возможности поднимать отдельные версии в подпапках.
breadcrumbs in gorshochek are awesome but not for this site, reverted
Да ты, батюшка, только скажи, как... а мы подхватим
Сейчас в корне проекта создаются две директории .gorshochek и .builder. Давай объединим их в одну .gorshochek.
Цитирую @blond.
В bem-config должно быть про какие есть уровни:
levels: {
'lib/bem-core/common.blocks': { scheme: 'nested' },
'lib/bem-core/desktop.blocks': { scheme: 'nested' },
'common.blocks': { scheme: 'flat' },
'desktop.blocks': { scheme: 'flat' }
}
// cc @zxqfox
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.