Skip to content

Commit

Permalink
doc: add license information for gen. files
Browse files Browse the repository at this point in the history
  • Loading branch information
adrientetar committed Feb 7, 2014
1 parent c3ccaac commit ec2f047
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -75,7 +75,6 @@ src/.DS_Store
/nd/
/llvm/
version.md
*.tex
keywords.md
x86_64-apple-darwin/
x86_64-unknown-linux-gnu/
Expand Down
23 changes: 17 additions & 6 deletions mk/docs.mk
Expand Up @@ -19,8 +19,10 @@ HTML_DEPS := doc/

BASE_DOC_OPTS := --standalone --toc --number-sections
HTML_OPTS = $(BASE_DOC_OPTS) --to=html5 --section-divs --css=rust.css \
--include-before-body=doc/version_info.html --include-in-header=doc/favicon.inc
TEX_OPTS = $(BASE_DOC_OPTS) --include-before-body=doc/version.md --to=latex
--include-before-body=doc/version_info.html \
--include-in-header=doc/favicon.inc --include-after-body=doc/footer.inc
TEX_OPTS = $(BASE_DOC_OPTS) --include-before-body=doc/version.md \
--from=markdown --include-before-body=doc/footer.tex --to=latex
EPUB_OPTS = $(BASE_DOC_OPTS) --to=epub

D := $(S)src/doc
Expand Down Expand Up @@ -55,12 +57,21 @@ doc/rust.css: $(D)/rust.css | doc/
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null

HTML_DEPS += doc/favicon.inc
doc/favicon.inc: $(D)/favicon.inc | doc/
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null

doc/full-toc.inc: $(D)/full-toc.inc | doc/
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null

HTML_DEPS += doc/favicon.inc
doc/favicon.inc: $(D)/favicon.inc | doc/
HTML_DEPS += doc/footer.inc
doc/footer.inc: $(D)/footer.inc | doc/
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null

doc/footer.tex: $(D)/footer.tex | doc/
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null

Expand All @@ -83,7 +94,7 @@ doc/rust.html: $(D)/rust.md doc/full-toc.inc $(HTML_DEPS) | doc/
$(CFG_PANDOC) $(HTML_OPTS) --include-in-header=doc/full-toc.inc --output=$@

DOCS += doc/rust.tex
doc/rust.tex: $(D)/rust.md doc/version.md | doc/
doc/rust.tex: $(D)/rust.md doc/footer.tex doc/version.md | doc/
@$(call E, pandoc: $@)
$(Q)$(CFG_NODE) $(D)/prep.js $< | \
$(CFG_PANDOC) $(TEX_OPTS) --output=$@
Expand All @@ -107,7 +118,7 @@ doc/tutorial.html: $(D)/tutorial.md $(HTML_DEPS)
$(CFG_PANDOC) $(HTML_OPTS) --output=$@

DOCS += doc/tutorial.tex
doc/tutorial.tex: $(D)/tutorial.md doc/version.md
doc/tutorial.tex: $(D)/tutorial.md doc/footer.tex doc/version.md
@$(call E, pandoc: $@)
$(Q)$(CFG_NODE) $(D)/prep.js $< | \
$(CFG_PANDOC) $(TEX_OPTS) --output=$@
Expand Down
7 changes: 7 additions & 0 deletions src/doc/footer.inc
@@ -0,0 +1,7 @@
<footer><p>
Copyright &copy; 2011-2014 The Rust Project Developers. Licensed under the
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>
or the <a href="http://opensource.org/licenses/MIT">MIT license</a>, at your option.
</p><p>
This file may not be copied, modified, or distributed except according to those terms.
</p></footer>
7 changes: 7 additions & 0 deletions src/doc/footer.tex
@@ -0,0 +1,7 @@
Copyright © 2011-2014 The Rust Project Developers. Licensed under the
\href{http://www.apache.org/licenses/LICENSE-2.0}{Apache License,
Version 2.0} or the \href{http://opensource.org/licenses/MIT}{MIT
license}, at your option.

This file may not be copied, modified, or distributed except according
to those terms.
10 changes: 9 additions & 1 deletion src/doc/rust.css
Expand Up @@ -15,7 +15,6 @@
body {
margin: 0 auto;
padding: 0 15px;
margin-bottom: 4em;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
color: #333;
Expand Down Expand Up @@ -76,6 +75,15 @@ p {
margin: 0 0 10px;
}

footer {
border-top: 1px solid #ddd;
font-size: 12px;
font-style: italic;
padding-top: 4px;
margin-top: 4em;
margin-bottom: 1em;
}

/* Links layout
========================================================================== */
a {
Expand Down

5 comments on commit ec2f047

@bors
Copy link
Contributor

@bors bors commented on ec2f047 Feb 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at adrientetar@ec2f047

@bors
Copy link
Contributor

@bors bors commented on ec2f047 Feb 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging adridu59/rust/licensing = ec2f047 into auto

@bors
Copy link
Contributor

@bors bors commented on ec2f047 Feb 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adridu59/rust/licensing = ec2f047 merged ok, testing candidate = 29e500db

@bors
Copy link
Contributor

@bors bors commented on ec2f047 Feb 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on ec2f047 Feb 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 29e500db

Please sign in to comment.