Skip to content
Snippets Groups Projects
Commit 92510fd1 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Make ./public the default build directory

parent 725a56e2
No related branches found
No related tags found
1 merge request!46Update README
pages/*
public/
image: registry.gitlab.com/gitlab-org/gitlab-build-images:doc-gitlab-com
 
variables:
SITE_PATH: "public/"
PROGRESS: "1"
 
pages:
Loading
Loading
#!/usr/bin/ruby
# Generates the html documentation from the markdown files in the GitLab repo.
# Call with no-clone to skip the timeconsuming closing process.
# By default, the site is built in /srv/doc-gitlab-com. This location can be
# Call with no-clone to skip the time consuming cloning process.
# By default, the site is built in ./public. This location can be
# overridden with the SITE_PATH environment variable.
#
# By default, this script will not create console output. If you want to see
Loading
Loading
@@ -24,7 +24,7 @@ def main
'omnibus' => 'https://gitlab.com/gitlab-org/omnibus-gitlab.git'
}
repo_path = File.expand_path('..', __FILE__)
site_path = ENV['SITE_PATH'] || '/srv/doc-gitlab-com'
site_path = ENV['SITE_PATH'] || './public'
 
repos.each do |relative_path, clone_url|
 
Loading
Loading
@@ -141,4 +141,4 @@ else
$progress = StringIO.new
end
 
main
\ No newline at end of file
main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment