Skip to content

Commit 0989568

Browse files
authored
Merge pull request #366 from openstax/unarchive-addman
move additive manufacturing out of archive
2 parents a927d18 + 076cb84 commit 0989568

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
* Move `additive-manufacturing` out of archived recipes and outline test data
10+
911
## [v2.15.0] - 2024-04-19
1012

1113
* Bake `TableColumns` in `nursing-internal`

archived_recipes/additive-manufacturing/bake renamed to lib/recipes/additive-manufacturing/recipe.rb

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
#!/usr/bin/env ruby
2-
31
# frozen_string_literal: true
42

5-
# ARCHIVED. NO LONGER IN PRODUCTION
6-
7-
require_relative '../recipes_helper'
8-
9-
recipe = Kitchen::BookRecipe.new(book_short_name: :additive_manufacturing) do |doc|
3+
ADDITIVE_MANUFACTURING_RECIPE = Kitchen::BookRecipe.new(book_short_name: :addman) \
4+
do |doc, _resources|
105
include Kitchen::Directions
116

127
book = doc.book
@@ -70,22 +65,13 @@
7065
)
7166
end
7267

73-
BakeFootnotes.v1(book: book)
74-
BakeIndex.v1(book: book)
68+
# TODO: Footnotes, Index, and ToC baking turned off until there's content
69+
70+
# BakeFootnotes.v1(book: book)
71+
# BakeIndex.v1(book: book)
7572
BakeCompositePages.v1(book: book)
7673
BakeLinkPlaceholders.v1(book: book)
77-
BakeToc.v1(book: book)
74+
# BakeToc.v1(book: book)
7875
BakeFolio.v1(book: book)
7976
BakeLinks.v1(book: book)
8077
end
81-
82-
opts = Slop.parse do |slop|
83-
slop.string '--input', 'Assembled XHTML input file', required: true
84-
slop.string '--output', 'Baked XHTML output file', required: true
85-
end
86-
87-
puts Kitchen::Oven.bake(
88-
input_file: opts[:input],
89-
recipes: [recipe, VALIDATE_OUTPUT],
90-
output_file: opts[:output]
91-
)

lib/recipes/bake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ book_recipes = \
1818
case opts[:recipe]
1919
when 'dummy' then [DUMMY_RECIPE]
2020
when 'accounting' then [ACCOUNTING_RECIPE]
21+
when 'additive-manufacturing' then [ADDITIVE_MANUFACTURING_RECIPE]
2122
when 'american-government' then [AMERICAN_GOVERNMENT_RECIPE]
2223
when 'anatomy' then [ANATOMY_RECIPE]
2324
when 'anthropology' then [ANTHROPOLOGY_RECIPE]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" data-pdf-folio-preface-message="Preface" data-pdf-folio-access-message="Access for free at openstax.org">
2+
<!-- POPULATE ME -->
3+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
2+
<!-- POPULATE ME -->
3+
</html>

spec/recipes_spec/main_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
expect('accounting').to match_expected_when_baked_with(cmd)
1414
end
1515

16+
it 'bakes additive-manufacturing' do
17+
cmd = form_bake_cmd(book: 'additive-manufacturing')
18+
expect('additive-manufacturing').to match_expected_when_baked_with(cmd)
19+
end
20+
1621
it 'bakes american-government' do
1722
cmd = form_bake_cmd(book: 'american-government')
1823
expect('american-government').to match_expected_when_baked_with(cmd)

0 commit comments

Comments
 (0)