public Config getConfig(Project project) {
		Config conf = new Config();
		conf.setProject(project.url);
		conf.setTitle(project.getName().trim() + " - " + this.title);

		if(illustrationsPage != null) {
			for(Image img : illustrationsPage.getImages()) {
				conf.getImages().add(img);
			}
		}


		for(Chapter chapter: chapters) {
			Page p = new Page();
			p.setName(chapter.getName());
			p.setTitle(chapter.title);

			if(chapter.startsWithTitle())
				p.setNotitle(true);

			conf.getPages().add(p);
		}

		return conf;
	}