mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-28 04:12:52 +00:00
* Details component * polish arrow animation * fix text selection bug * fix some edge cases + polish * example of overriding baseClassName * Move Details component to theme-common * make component work even when JS is disabled or failed to load * update arrow transform * Details component: better handling of no-JS fallback mode: avoid delaying arrow navigation when JS (see review) * prefix css vars with --docusaurus * improve css arrow styling * slightly change details/summary design * better md doc + include quotes and details in doc
21 lines
536 B
JavaScript
21 lines
536 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
const fs = require('fs-extra');
|
|
|
|
/**
|
|
* Copy all untyped and static assets files to lib.
|
|
*/
|
|
const srcDir = path.resolve(__dirname, 'src');
|
|
const libDir = path.resolve(__dirname, 'lib');
|
|
fs.copySync(srcDir, libDir, {
|
|
filter(filepath) {
|
|
return !/__tests__/.test(filepath) && !/\.tsx?$/.test(filepath);
|
|
},
|
|
});
|