From cc44591b5857d2c79adedb77fa29dc4b810c4123 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 22 Apr 2013 18:32:26 +0000 Subject: [PATCH] Add basic CSS styling to the Atmel Studio integrated help. --- .../HV1/lufa_studio_help_styling.css | 45 +++++++++++++++++++ LUFA/StudioIntegration/makefile | 8 ++-- 2 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css diff --git a/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css b/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css new file mode 100644 index 0000000000..cfc835ef1c --- /dev/null +++ b/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css @@ -0,0 +1,45 @@ +.programlisting { + display: block; + margin-left: 15px; + padding: 10px; + background-color: #f0f0f0; + border: 1px solid #aaaaaa; + font-family: "Consolas", "Courier New", sans-serif; + } + + code { + background-color: #f0f0f0; + font-family: "Consolas", "Courier New", sans-serif; + } + +.note { + display: block; + margin-left: 15px; + padding-left: 10px; + padding-bottom: 5px; + background-color: #f0f0f0; + border: 1px solid #aaaaaa; +} + +table { + border: 1px solid #aaaaaa; + border-collapse: collapse; + margin-left: 15px; + font-size: 10pt; +} + +table thead * { + background-color: #f0f0f0; +} + +table thead th { + padding: 5px; +} + +table th, td { + padding: 5px; +} + +ul { + padding-left: 20px; +} diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile index af9563aabb..bf89beaa22 100644 --- a/LUFA/StudioIntegration/makefile +++ b/LUFA/StudioIntegration/makefile @@ -39,13 +39,14 @@ VSIX_ASSETS := $(LUFA_ROOT)/DoxygenPages/Images/LUFA_thumb.png \ VSIX/GettingStarted.htm \ Blob/Atmel.Studio.Services.Interfaces.dll \ Blob/LUFA.dll \ - Blob/LUFA.pkgdef + Blob/LUFA.pkgdef \ MSHELP_GEN_PARAMS := --stringparam generate.toc "book toc" \ --stringparam chunk.quietly "1" \ --stringparam chunk.section.depth "3" \ --stringparam chunk.first.sections "1" \ - --stringparam chapter.autolabel "0" + --stringparam chapter.autolabel "0" \ + --stringparam html.stylesheet "lufa_studio_help_styling.css" all: generate_xml check_filenames generate_vsix @@ -88,11 +89,12 @@ $(MSHELP_OUTPUT_XML): $(DOXYGEN_COMBINED_XML) @cd mshelp && xsltproc $(MSHELP_GEN_PARAMS) ../Docbook/mshelp/docbook.xsl lufa_docbook.xml @echo Copying help assets... + @cp HV1/lufa_studio_help_styling.css mshelp @-mkdir mshelp/images 2> /dev/null @cp `find $(LUFA_ROOT)/DoxygenPages/Images -type f` mshelp/images @echo Archiving help content... - @cd mshelp && zip ../$(MSHELP_OUTPUT_XML) -q -0 -r *.html images + @cd mshelp && zip ../$(MSHELP_OUTPUT_XML) -q -0 -r *.html *.css images generate_xml: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML)