Skip to content

Commit e403ec8

Browse files
author
Sam Kleinman
committed
build: moving build configuration files
1 parent 8312658 commit e403ec8

17 files changed

+24
-23
lines changed

bootstrap.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

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

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

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

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

16-
buildsystem = conf['build']['paths']['buildsystem']
16+
buildsystem = conf['paths']['buildsystem']
1717

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

conf.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
from docs_meta import get_conf, get_versions, get_manual_path
2626

2727
conf = get_conf()
28-
conf.build.paths.projectroot = project_root
29-
pdfs = ingest_yaml_list(os.path.join(conf.build.paths.builddata, 'pdfs.yaml'))
30-
intersphinx_libs = ingest_yaml_list(os.path.join(conf.build.paths.builddata, 'intersphinx.yaml'))
28+
29+
conf.paths.projectroot = project_root
30+
pdfs = ingest_yaml_list(os.path.join(conf.paths.builddata, 'pdfs.yaml'))
31+
intersphinx_libs = ingest_yaml_list(os.path.join(conf.paths.builddata, 'intersphinx.yaml'))
3132

3233
# -- General configuration ----------------------------------------------------
3334

@@ -41,7 +42,7 @@
4142
'directives',
4243
]
4344

44-
locale_dirs = [ conf.build.paths.locale ]
45+
locale_dirs = [ conf.paths.locale ]
4546
gettext_compact = False
4647

4748
templates_path = ['.templates']
@@ -87,8 +88,8 @@
8788

8889
intersphinx_mapping = {}
8990
for i in intersphinx_libs:
90-
intersphinx_mapping[i['name']] = ( i['url'], os.path.join(conf.build.paths.projectroot,
91-
conf.build.paths.output,
91+
intersphinx_mapping[i['name']] = ( i['url'], os.path.join(conf.paths.projectroot,
92+
conf.paths.output,
9293
i['path']))
9394

9495
languages = [

bin/docs_meta.yaml config/build_conf.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ version:
2424
- '2.2'
2525
stable: '2.4'
2626
upcoming: '2.6'
27-
build:
28-
system:
29-
files:
27+
system:
28+
make:
29+
generated:
3030
- 'migrations'
3131
- 'integration'
3232
- 'meta'
@@ -36,13 +36,13 @@ build:
3636
- 'makefile.compatibility'
3737
- 'makefile.clean'
3838
- 'makefile.dtf'
39-
paths:
40-
output: 'build'
41-
source: 'source'
42-
includes: 'source/includes'
43-
images: 'source/images'
44-
tools: 'bin'
45-
buildsystem: 'build/docs-tools'
46-
builddata: 'bin/builddata'
47-
locale: 'locale'
39+
paths:
40+
output: 'build'
41+
source: 'source'
42+
includes: 'source/includes'
43+
images: 'source/images'
44+
tools: 'bin'
45+
buildsystem: 'build/docs-tools'
46+
builddata: 'config'
47+
locale: 'locale'
4848
...
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.

bin/builddata/migrations.yaml config/migrations.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependency:
3434
action: 'dep'
3535
---
3636
target: 'mongodb-domain.yaml'
37-
dependency: 'bin/builddata/mongodb-domain.yaml'
37+
dependency: 'config/mongodb-domain.yaml'
3838
action: 'cp'
3939
type: 'build'
4040
---
@@ -74,7 +74,7 @@ action: dep
7474
---
7575
target: $(public-output)/.htaccess
7676
dependency:
77-
- bin/builddata/htaccess.yaml
77+
- config/htaccess.yaml
7878
- $(tools)/bin/htaccess.py
7979
command: "fab generate.htaccess:$(public-output)/.htaccess"
8080
action: cmd
@@ -85,7 +85,7 @@ action: dep
8585
---
8686
target: $(public-output)/robots.txt
8787
dependency:
88-
- bin/builddata/robots.yaml
88+
- config/robots.yaml
8989
command: "fab generate.robots:$(public-output)/robots.txt"
9090
action: cmd
9191
...
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 commit comments

Comments
 (0)