Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2022-05-30 01:14:14 +0300
committerEvan Read <eread@gitlab.com>2022-05-30 01:14:14 +0300
commit7e06b75fa56205a5dbaf4a3245ed149d558368ea (patch)
treeba45774782e6647863cf589677f211e185e73153 /commands
parentfc3b62d327d6a06cfab3c1d7bdd48051fb3755dd (diff)
Replace Bootstrap CSS with GitLab UI CSS
Diffstat (limited to 'commands')
-rw-r--r--commands/frontend.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/commands/frontend.rb b/commands/frontend.rb
index 0a174d4a..0e9e7e90 100644
--- a/commands/frontend.rb
+++ b/commands/frontend.rb
@@ -3,7 +3,7 @@
usage 'frontend [options]'
aliases :ds, :stuff
summary 'uses nanoc cli to execute frontend related tasks'
-description 'This command is used by the Nanoc CLI to bundle the JavaScript.'
+description 'This command is used by the Nanoc CLI to bundle JavaScript.'
flag :h, :help, 'show help for this command' do |value, cmd|
puts cmd.help
@@ -28,7 +28,7 @@ run do |opts, args, cmd|
ERROR
end
- puts 'Create icons.svg ...'
+ puts 'Creating icons.svg ...'
root = File.expand_path('../', __dir__)
path = 'node_modules/@gitlab/svgs/dist/icons.svg'
@@ -37,4 +37,16 @@ run do |opts, args, cmd|
else
puts 'Failed to create icons.svg!'
end
+
+ puts 'Copying GitLab UI CSS...'
+ gl_ui_src = 'node_modules/@gitlab/ui/dist'
+ gl_ui_dest = 'public/assets/stylesheets/gitlab-ui'
+ Dir.mkdir gl_ui_dest
+
+ Dir.children("#{gl_ui_src}").each do |filename|
+ if filename.include?("css") && File.write("#{gl_ui_dest}/#{filename}", File.read("#{root}/#{gl_ui_src}/#{filename}"))
+ puts "Copied #{gl_ui_src}/#{filename}"
+ end
+ end
+
end