Skip to content

Commit

Permalink
build: moving build configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kleinman committed Jan 14, 2014
1 parent 8312658 commit e403ec8
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 23 deletions.
4 changes: 2 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

project_root = os.path.abspath(os.path.dirname(__file__))

master_conf = os.path.join(project_root, 'bin', 'docs_meta.yaml')
master_conf = os.path.join(project_root, 'config', 'build_conf.yaml')

with open(master_conf, 'r') as f:
conf = yaml.safe_load(f)

repo = 'git://github.com/{0}.git'.format(conf['git']['remote']['tools'])

buildsystem = conf['build']['paths']['buildsystem']
buildsystem = conf['paths']['buildsystem']

sys.path.append(os.path.join(buildsystem, 'bin'))

Expand Down
13 changes: 7 additions & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
from docs_meta import get_conf, get_versions, get_manual_path

conf = get_conf()
conf.build.paths.projectroot = project_root
pdfs = ingest_yaml_list(os.path.join(conf.build.paths.builddata, 'pdfs.yaml'))
intersphinx_libs = ingest_yaml_list(os.path.join(conf.build.paths.builddata, 'intersphinx.yaml'))

conf.paths.projectroot = project_root
pdfs = ingest_yaml_list(os.path.join(conf.paths.builddata, 'pdfs.yaml'))
intersphinx_libs = ingest_yaml_list(os.path.join(conf.paths.builddata, 'intersphinx.yaml'))

# -- General configuration ----------------------------------------------------

Expand All @@ -41,7 +42,7 @@
'directives',
]

locale_dirs = [ conf.build.paths.locale ]
locale_dirs = [ conf.paths.locale ]
gettext_compact = False

templates_path = ['.templates']
Expand Down Expand Up @@ -87,8 +88,8 @@

intersphinx_mapping = {}
for i in intersphinx_libs:
intersphinx_mapping[i['name']] = ( i['url'], os.path.join(conf.build.paths.projectroot,
conf.build.paths.output,
intersphinx_mapping[i['name']] = ( i['url'], os.path.join(conf.paths.projectroot,
conf.paths.output,
i['path']))

languages = [
Expand Down
24 changes: 12 additions & 12 deletions bin/docs_meta.yaml → config/build_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ version:
- '2.2'
stable: '2.4'
upcoming: '2.6'
build:
system:
files:
system:
make:
generated:
- 'migrations'
- 'integration'
- 'meta'
Expand All @@ -36,13 +36,13 @@ build:
- 'makefile.compatibility'
- 'makefile.clean'
- 'makefile.dtf'
paths:
output: 'build'
source: 'source'
includes: 'source/includes'
images: 'source/images'
tools: 'bin'
buildsystem: 'build/docs-tools'
builddata: 'bin/builddata'
locale: 'locale'
paths:
output: 'build'
source: 'source'
includes: 'source/includes'
images: 'source/images'
tools: 'bin'
buildsystem: 'build/docs-tools'
builddata: 'config'
locale: 'locale'
...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions bin/builddata/migrations.yaml → config/migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependency:
action: 'dep'
---
target: 'mongodb-domain.yaml'
dependency: 'bin/builddata/mongodb-domain.yaml'
dependency: 'config/mongodb-domain.yaml'
action: 'cp'
type: 'build'
---
Expand Down Expand Up @@ -74,7 +74,7 @@ action: dep
---
target: $(public-output)/.htaccess
dependency:
- bin/builddata/htaccess.yaml
- config/htaccess.yaml
- $(tools)/bin/htaccess.py
command: "fab generate.htaccess:$(public-output)/.htaccess"
action: cmd
Expand All @@ -85,7 +85,7 @@ action: dep
---
target: $(public-output)/robots.txt
dependency:
- bin/builddata/robots.yaml
- config/robots.yaml
command: "fab generate.robots:$(public-output)/robots.txt"
action: cmd
...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e403ec8

Please sign in to comment.