From 9a656d399c8c9e81de3414089d0b9b72af87d57d Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Tue, 25 Apr 2017 07:59:00 -0400 Subject: [PATCH] Update Ceedling to concentrate on the markdown documentation of the subprojects. --- bin/ceedling | 15 ++++++++------- spec/spec_system_helper.rb | 6 ++++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/bin/ceedling b/bin/ceedling index 78f17e40..57fd8422 100755 --- a/bin/ceedling +++ b/bin/ceedling @@ -61,14 +61,15 @@ unless (project_found && rakefile_found) in_doc_path = lambda {|f| File.join(doc_path, f)} doc_files = [ - 'docs/CeedlingPacket.pdf', - 'vendor/c_exception/docs/CExceptionSummary.pdf', - 'vendor/cmock/docs/CMock Summary.pdf', + 'docs/CeedlingPacket.md', + 'vendor/c_exception/docs/CException.md', + 'vendor/cmock/docs/CMock_Summary.md', 'vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf', - 'vendor/unity/docs/UnityAssertionsReference.pdf', - 'vendor/unity/docs/UnityConfigurationGuide.pdf', - 'vendor/unity/docs/UnityGettingStartedGuide.pdf', - 'vendor/unity/docs/UnityHelperScriptsGuide.pdf', + 'vendor/unity/docs/UnityAssertionsReference.md', + 'vendor/unity/docs/UnityConfigurationGuide.md', + 'vendor/unity/docs/UnityGettingStartedGuide.md', + 'vendor/unity/docs/UnityHelperScriptsGuide.md', + 'vendor/unity/docs/ThrowTheSwitchCodingStandard.md', ] doc_files.each do |f| diff --git a/spec/spec_system_helper.rb b/spec/spec_system_helper.rb index 9d5a301b..64410c7d 100644 --- a/spec/spec_system_helper.rb +++ b/spec/spec_system_helper.rb @@ -142,7 +142,8 @@ def can_upgrade_projects expect(File.exists?("rakefile.rb")).to eq true expect(File.exists?("src")).to eq true expect(File.exists?("test")).to eq true - expect(Dir["vendor/ceedling/docs/*.pdf"].length).to be >= 4 + all_docs = Dir["vendor/ceedling/docs/*.pdf"].length + Dir["vendor/ceedling/docs/*.md"].length + expect(all_docs).to be >= 4 end end end @@ -166,7 +167,8 @@ def does_not_contain_a_vendor_directory def contains_documentation @c.with_context do Dir.chdir @proj_name do - expect(Dir["vendor/ceedling/docs/*.pdf"].length).to be >= 4 + all_docs = Dir["vendor/ceedling/docs/*.pdf"].length + Dir["vendor/ceedling/docs/*.md"].length + expect(all_docs).to be >= 4 end end end