diff --git a/.gitignore b/.gitignore index a4d7203c2b41a..73edf3bdfce8d 100644 --- a/.gitignore +++ b/.gitignore @@ -71,20 +71,7 @@ src/.DS_Store /stage2/ /stage3/ *.bz2 -/doc/html -/doc/latex -/doc/std -/doc/arena -/doc/extra -/doc/flate -/doc/glob -/doc/green -/doc/native -/doc/rustc -/doc/syntax -/doc/rustdoc -/doc/rustuv -/doc/rustpkg +/doc /nd/ /llvm/ version.md diff --git a/Makefile.in b/Makefile.in index af21ab4fac27c..05b62157de9b5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -206,9 +206,6 @@ endef $(foreach target,$(CFG_TARGET),\ $(eval $(call DEF_X,$(target)))) -# Look in doc and src dirs. -VPATH := $(S)doc $(S)src - # "Source" files we generate in builddir along the way. GENERATED := diff --git a/mk/clean.mk b/mk/clean.mk index 27c779f107d4b..edd0554195b14 100644 --- a/mk/clean.mk +++ b/mk/clean.mk @@ -45,13 +45,7 @@ clean-misc: $(Q)rm -Rf $(GENERATED) $(Q)rm -Rf tmp/* $(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz $(PKG_NAME)-*.exe dist - $(Q)rm -Rf $(foreach ext, \ - html aux cp fn ky log pdf pg toc tp vr cps epub, \ - $(wildcard doc/*.$(ext))) - $(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf - $(Q)rm -Rf doc/version.md - $(Q)rm -Rf $(foreach sub, index styles files search javascript, \ - $(wildcard doc/*/$(sub))) + $(Q)rm -Rf doc define CLEAN_GENERIC diff --git a/mk/docs.mk b/mk/docs.mk index 4130edba6162c..a5577c2730832 100644 --- a/mk/docs.mk +++ b/mk/docs.mk @@ -15,7 +15,7 @@ DOCS := CDOCS := DOCS_L10N := -HTML_DEPS := +HTML_DEPS := doc/ BASE_DOC_OPTS := --standalone --toc --number-sections HTML_OPTS = $(BASE_DOC_OPTS) --to=html5 --section-divs --css=rust.css \ @@ -23,17 +23,19 @@ HTML_OPTS = $(BASE_DOC_OPTS) --to=html5 --section-divs --css=rust.css \ TEX_OPTS = $(BASE_DOC_OPTS) --include-before-body=doc/version.md --to=latex EPUB_OPTS = $(BASE_DOC_OPTS) --to=epub +D := $(S)src/doc + ###################################################################### # Rust version ###################################################################### -doc/version.md: $(MKFILE_DEPS) $(wildcard $(S)doc/*.*) +doc/version.md: $(MKFILE_DEPS) $(wildcard $(D)/*.*) | doc/ @$(call E, version-stamp: $@) $(Q)echo "$(CFG_VERSION)" >$@ HTML_DEPS += doc/version_info.html -doc/version_info.html: version_info.html.template $(MKFILE_DEPS) \ - $(wildcard $(S)doc/*.*) +doc/version_info.html: $(D)/version_info.html.template $(MKFILE_DEPS) \ + $(wildcard $(D)/*.*) | doc/ @$(call E, version-info: $@) sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(shell echo \ $(CFG_VER_HASH) | head -c 8)/;\ @@ -45,17 +47,20 @@ GENERATED += doc/version.md doc/version_info.html # Docs, from pandoc, rustdoc (which runs pandoc), and node ###################################################################### +doc/: + @mkdir -p $@ + HTML_DEPS += doc/rust.css -doc/rust.css: rust.css +doc/rust.css: $(D)/rust.css | doc/ @$(call E, cp: $@) $(Q)cp -a $< $@ 2> /dev/null -doc/full-toc.inc: full-toc.inc +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: favicon.inc +doc/favicon.inc: $(D)/favicon.inc | doc/ @$(call E, cp: $@) $(Q)cp -a $< $@ 2> /dev/null @@ -72,52 +77,52 @@ endif ifneq ($(NO_DOCS),1) DOCS += doc/rust.html -doc/rust.html: rust.md doc/full-toc.inc $(HTML_DEPS) +doc/rust.html: $(D)/rust.md doc/full-toc.inc $(HTML_DEPS) | doc/ @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --include-in-header=doc/full-toc.inc --output=$@ DOCS += doc/rust.tex -doc/rust.tex: rust.md doc/version.md +doc/rust.tex: $(D)/rust.md doc/version.md | doc/ @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js $< | \ $(CFG_PANDOC) $(TEX_OPTS) --output=$@ DOCS += doc/rust.epub -doc/rust.epub: rust.md +doc/rust.epub: $(D)/rust.md | doc/ @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(EPUB_OPTS) --output=$@ DOCS += doc/rustdoc.html -doc/rustdoc.html: rustdoc.md $(HTML_DEPS) +doc/rustdoc.html: $(D)/rustdoc.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/tutorial.html -doc/tutorial.html: tutorial.md $(HTML_DEPS) +doc/tutorial.html: $(D)/tutorial.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/tutorial.tex -doc/tutorial.tex: tutorial.md doc/version.md +doc/tutorial.tex: $(D)/tutorial.md doc/version.md @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js $< | \ $(CFG_PANDOC) $(TEX_OPTS) --output=$@ DOCS += doc/tutorial.epub -doc/tutorial.epub: tutorial.md +doc/tutorial.epub: $(D)/tutorial.md @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(EPUB_OPTS) --output=$@ DOCS_L10N += doc/l10n/ja/tutorial.html doc/l10n/ja/tutorial.html: doc/l10n/ja/tutorial.md doc/version_info.html doc/rust.css @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight doc/l10n/ja/tutorial.md | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight doc/l10n/ja/tutorial.md | \ $(CFG_PANDOC) --standalone --toc \ --section-divs --number-sections \ --from=markdown --to=html5 --css=../../rust.css \ @@ -127,95 +132,95 @@ doc/l10n/ja/tutorial.html: doc/l10n/ja/tutorial.md doc/version_info.html doc/rus # Complementary documentation # DOCS += doc/index.html -doc/index.html: index.md $(HTML_DEPS) +doc/index.html: $(D)/index.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/complement-lang-faq.html -doc/complement-lang-faq.html: $(S)doc/complement-lang-faq.md doc/full-toc.inc $(HTML_DEPS) +doc/complement-lang-faq.html: $(D)/complement-lang-faq.md doc/full-toc.inc $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --include-in-header=doc/full-toc.inc --output=$@ DOCS += doc/complement-project-faq.html -doc/complement-project-faq.html: $(S)doc/complement-project-faq.md $(HTML_DEPS) +doc/complement-project-faq.html: $(D)/complement-project-faq.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/complement-usage-faq.html -doc/complement-usage-faq.html: $(S)doc/complement-usage-faq.md $(HTML_DEPS) +doc/complement-usage-faq.html: $(D)/complement-usage-faq.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/complement-cheatsheet.html -doc/complement-cheatsheet.html: $(S)doc/complement-cheatsheet.md doc/full-toc.inc $(HTML_DEPS) +doc/complement-cheatsheet.html: $(D)/complement-cheatsheet.md doc/full-toc.inc $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --include-in-header=doc/full-toc.inc --output=$@ DOCS += doc/complement-bugreport.html -doc/complement-bugreport.html: $(S)doc/complement-bugreport.md $(HTML_DEPS) +doc/complement-bugreport.html: $(D)/complement-bugreport.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ # Guides DOCS += doc/guide-macros.html -doc/guide-macros.html: $(S)doc/guide-macros.md $(HTML_DEPS) +doc/guide-macros.html: $(D)/guide-macros.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-container.html -doc/guide-container.html: $(S)doc/guide-container.md $(HTML_DEPS) +doc/guide-container.html: $(D)/guide-container.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-ffi.html -doc/guide-ffi.html: $(S)doc/guide-ffi.md $(HTML_DEPS) +doc/guide-ffi.html: $(D)/guide-ffi.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-testing.html -doc/guide-testing.html: $(S)doc/guide-testing.md $(HTML_DEPS) +doc/guide-testing.html: $(D)/guide-testing.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-lifetimes.html -doc/guide-lifetimes.html: $(S)doc/guide-lifetimes.md $(HTML_DEPS) +doc/guide-lifetimes.html: $(D)/guide-lifetimes.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-tasks.html -doc/guide-tasks.html: $(S)doc/guide-tasks.md $(HTML_DEPS) +doc/guide-tasks.html: $(D)/guide-tasks.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-conditions.html -doc/guide-conditions.html: $(S)doc/guide-conditions.md $(HTML_DEPS) +doc/guide-conditions.html: $(D)/guide-conditions.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-pointers.html -doc/guide-pointers.html: $(S)doc/guide-pointers.md $(HTML_DEPS) +doc/guide-pointers.html: $(D)/guide-pointers.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ DOCS += doc/guide-runtime.html -doc/guide-runtime.html: $(S)doc/guide-runtime.md $(HTML_DEPS) +doc/guide-runtime.html: $(D)/guide-runtime.md $(HTML_DEPS) @$(call E, pandoc: $@) - $(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \ + $(Q)$(CFG_NODE) $(D)/prep.js --highlight $< | \ $(CFG_PANDOC) $(HTML_OPTS) --output=$@ ifeq ($(CFG_PDFLATEX),) @@ -274,8 +279,10 @@ endif # Rustdoc (libstd/extra) ###################################################################### -# The rustdoc executable -RUSTDOC = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD)) +# The rustdoc executable, rpath included in case --disable-rpath was provided to +# ./configure +RUSTDOC = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \ + $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD)) # The library documenting macro # diff --git a/mk/rt.mk b/mk/rt.mk index 269491649bb28..f2226b1ae3eee 100644 --- a/mk/rt.mk +++ b/mk/rt.mk @@ -67,13 +67,14 @@ NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S RT_OUTPUT_DIR_$(1) := $(1)/rt -$$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.ll $$(MKFILE_DEPS) $$(LLVM_CONFIG_$$(CFG_BUILD)) +$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.ll $$(MKFILE_DEPS) \ + $$(LLVM_CONFIG_$$(CFG_BUILD)) @mkdir -p $$(@D) @$$(call E, compile: $$@) $$(Q)$$(LLC_$$(CFG_BUILD)) $$(CFG_LLC_FLAGS_$(1)) \ -filetype=obj -mtriple=$(1) -relocation-model=pic -o $$@ $$< -$$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.c $$(MKFILE_DEPS) +$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS) @mkdir -p $$(@D) @$$(call E, compile: $$@) $$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \ @@ -81,7 +82,8 @@ $$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.c $$(MKFILE_DEPS) -I $$(S)src/libuv/include -I $$(S)src/rt \ $$(RUNTIME_CFLAGS_$(1))) $$< -$$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.S $$(MKFILE_DEPS) $$(LLVM_CONFIG_$$(CFG_BUILD)) +$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.S $$(MKFILE_DEPS) \ + $$(LLVM_CONFIG_$$(CFG_BUILD)) @mkdir -p $$(@D) @$$(call E, compile: $$@) $$(Q)$$(call CFG_ASSEMBLE_$(1),$$@,$$<) diff --git a/mk/rustllvm.mk b/mk/rustllvm.mk index 8d7abc020cc27..a62386818c156 100644 --- a/mk/rustllvm.mk +++ b/mk/rustllvm.mk @@ -37,7 +37,7 @@ $$(RT_OUTPUT_DIR_$(1))/$$(call CFG_STATIC_LIB_NAME_$(1),rustllvm): \ @$$(call E, link: $$@) $$(Q)$$(AR_$(1)) rcs $$@ $$(RUSTLLVM_OBJS_OBJS_$(1)) -$(1)/rustllvm/%.o: rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1)) +$(1)/rustllvm/%.o: $(S)src/rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1)) @$$(call E, compile: $$@) $$(Q)$$(call CFG_COMPILE_CXX_$(1), $$@, $$(LLVM_CXXFLAGS_$(1)) $$(RUSTLLVM_INCS_$(1))) $$< endef diff --git a/mk/tests.mk b/mk/tests.mk index 6d151cfc86aba..cd5e85cf34f20 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -260,6 +260,7 @@ tidy: | grep '^$(S)src/libuv' -v \ | grep '^$(S)src/gyp' -v \ | grep '^$(S)src/etc' -v \ + | grep '^$(S)src/doc' -v \ | xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py endif @@ -715,7 +716,7 @@ define DEF_DOC_TEST_HOST doc-$(2)-extract$(1): @$$(call E, extract: $(2) tests) $$(Q)rm -f $(1)/test/doc-$(2)/*.rs - $$(Q)$$(EXTRACT_TESTS) $$(S)doc/$(2).md $(1)/test/doc-$(2) + $$(Q)$$(EXTRACT_TESTS) $$(D)/$(2).md $(1)/test/doc-$(2) endef diff --git a/doc/README.md b/src/doc/README.md similarity index 100% rename from doc/README.md rename to src/doc/README.md diff --git a/doc/complement-bugreport.md b/src/doc/complement-bugreport.md similarity index 100% rename from doc/complement-bugreport.md rename to src/doc/complement-bugreport.md diff --git a/doc/complement-cheatsheet.md b/src/doc/complement-cheatsheet.md similarity index 100% rename from doc/complement-cheatsheet.md rename to src/doc/complement-cheatsheet.md diff --git a/doc/complement-lang-faq.md b/src/doc/complement-lang-faq.md similarity index 100% rename from doc/complement-lang-faq.md rename to src/doc/complement-lang-faq.md diff --git a/doc/complement-project-faq.md b/src/doc/complement-project-faq.md similarity index 100% rename from doc/complement-project-faq.md rename to src/doc/complement-project-faq.md diff --git a/doc/complement-usage-faq.md b/src/doc/complement-usage-faq.md similarity index 100% rename from doc/complement-usage-faq.md rename to src/doc/complement-usage-faq.md diff --git a/doc/favicon.inc b/src/doc/favicon.inc similarity index 100% rename from doc/favicon.inc rename to src/doc/favicon.inc diff --git a/doc/full-toc.inc b/src/doc/full-toc.inc similarity index 100% rename from doc/full-toc.inc rename to src/doc/full-toc.inc diff --git a/doc/guide-conditions.md b/src/doc/guide-conditions.md similarity index 100% rename from doc/guide-conditions.md rename to src/doc/guide-conditions.md diff --git a/doc/guide-container.md b/src/doc/guide-container.md similarity index 100% rename from doc/guide-container.md rename to src/doc/guide-container.md diff --git a/doc/guide-ffi.md b/src/doc/guide-ffi.md similarity index 100% rename from doc/guide-ffi.md rename to src/doc/guide-ffi.md diff --git a/doc/guide-lifetimes.md b/src/doc/guide-lifetimes.md similarity index 100% rename from doc/guide-lifetimes.md rename to src/doc/guide-lifetimes.md diff --git a/doc/guide-macros.md b/src/doc/guide-macros.md similarity index 100% rename from doc/guide-macros.md rename to src/doc/guide-macros.md diff --git a/doc/guide-pointers.md b/src/doc/guide-pointers.md similarity index 100% rename from doc/guide-pointers.md rename to src/doc/guide-pointers.md diff --git a/doc/guide-runtime.md b/src/doc/guide-runtime.md similarity index 100% rename from doc/guide-runtime.md rename to src/doc/guide-runtime.md diff --git a/doc/guide-tasks.md b/src/doc/guide-tasks.md similarity index 100% rename from doc/guide-tasks.md rename to src/doc/guide-tasks.md diff --git a/doc/guide-testing.md b/src/doc/guide-testing.md similarity index 100% rename from doc/guide-testing.md rename to src/doc/guide-testing.md diff --git a/doc/index.md b/src/doc/index.md similarity index 100% rename from doc/index.md rename to src/doc/index.md diff --git a/doc/lib/codemirror-node.js b/src/doc/lib/codemirror-node.js similarity index 100% rename from doc/lib/codemirror-node.js rename to src/doc/lib/codemirror-node.js diff --git a/doc/lib/codemirror-rust.js b/src/doc/lib/codemirror-rust.js similarity index 100% rename from doc/lib/codemirror-rust.js rename to src/doc/lib/codemirror-rust.js diff --git a/doc/po/ja/complement-cheatsheet.md.po b/src/doc/po/ja/complement-cheatsheet.md.po similarity index 100% rename from doc/po/ja/complement-cheatsheet.md.po rename to src/doc/po/ja/complement-cheatsheet.md.po diff --git a/doc/po/ja/complement-lang-faq.md.po b/src/doc/po/ja/complement-lang-faq.md.po similarity index 100% rename from doc/po/ja/complement-lang-faq.md.po rename to src/doc/po/ja/complement-lang-faq.md.po diff --git a/doc/po/ja/complement-project-faq.md.po b/src/doc/po/ja/complement-project-faq.md.po similarity index 100% rename from doc/po/ja/complement-project-faq.md.po rename to src/doc/po/ja/complement-project-faq.md.po diff --git a/doc/po/ja/guide-conditions.md.po b/src/doc/po/ja/guide-conditions.md.po similarity index 100% rename from doc/po/ja/guide-conditions.md.po rename to src/doc/po/ja/guide-conditions.md.po diff --git a/doc/po/ja/guide-container.md.po b/src/doc/po/ja/guide-container.md.po similarity index 100% rename from doc/po/ja/guide-container.md.po rename to src/doc/po/ja/guide-container.md.po diff --git a/doc/po/ja/guide-ffi.md.po b/src/doc/po/ja/guide-ffi.md.po similarity index 100% rename from doc/po/ja/guide-ffi.md.po rename to src/doc/po/ja/guide-ffi.md.po diff --git a/doc/po/ja/guide-lifetimes.md.po b/src/doc/po/ja/guide-lifetimes.md.po similarity index 100% rename from doc/po/ja/guide-lifetimes.md.po rename to src/doc/po/ja/guide-lifetimes.md.po diff --git a/doc/po/ja/guide-macros.md.po b/src/doc/po/ja/guide-macros.md.po similarity index 100% rename from doc/po/ja/guide-macros.md.po rename to src/doc/po/ja/guide-macros.md.po diff --git a/doc/po/ja/guide-pointers.md.po b/src/doc/po/ja/guide-pointers.md.po similarity index 100% rename from doc/po/ja/guide-pointers.md.po rename to src/doc/po/ja/guide-pointers.md.po diff --git a/doc/po/ja/guide-tasks.md.po b/src/doc/po/ja/guide-tasks.md.po similarity index 100% rename from doc/po/ja/guide-tasks.md.po rename to src/doc/po/ja/guide-tasks.md.po diff --git a/doc/po/ja/guide-testing.md.po b/src/doc/po/ja/guide-testing.md.po similarity index 100% rename from doc/po/ja/guide-testing.md.po rename to src/doc/po/ja/guide-testing.md.po diff --git a/doc/po/ja/index.md.po b/src/doc/po/ja/index.md.po similarity index 100% rename from doc/po/ja/index.md.po rename to src/doc/po/ja/index.md.po diff --git a/doc/po/ja/rust.md.po b/src/doc/po/ja/rust.md.po similarity index 100% rename from doc/po/ja/rust.md.po rename to src/doc/po/ja/rust.md.po diff --git a/doc/po/ja/rustdoc.md.po b/src/doc/po/ja/rustdoc.md.po similarity index 100% rename from doc/po/ja/rustdoc.md.po rename to src/doc/po/ja/rustdoc.md.po diff --git a/doc/po/ja/rustpkg.md.po b/src/doc/po/ja/rustpkg.md.po similarity index 100% rename from doc/po/ja/rustpkg.md.po rename to src/doc/po/ja/rustpkg.md.po diff --git a/doc/po/ja/tutorial.md.po b/src/doc/po/ja/tutorial.md.po similarity index 100% rename from doc/po/ja/tutorial.md.po rename to src/doc/po/ja/tutorial.md.po diff --git a/doc/po4a.conf b/src/doc/po4a.conf similarity index 100% rename from doc/po4a.conf rename to src/doc/po4a.conf diff --git a/doc/prep.js b/src/doc/prep.js old mode 100755 new mode 100644 similarity index 100% rename from doc/prep.js rename to src/doc/prep.js diff --git a/doc/rust.css b/src/doc/rust.css similarity index 100% rename from doc/rust.css rename to src/doc/rust.css diff --git a/doc/rust.md b/src/doc/rust.md similarity index 100% rename from doc/rust.md rename to src/doc/rust.md diff --git a/doc/rustdoc.md b/src/doc/rustdoc.md similarity index 100% rename from doc/rustdoc.md rename to src/doc/rustdoc.md diff --git a/doc/tutorial.md b/src/doc/tutorial.md similarity index 100% rename from doc/tutorial.md rename to src/doc/tutorial.md diff --git a/doc/version_info.html.template b/src/doc/version_info.html.template similarity index 100% rename from doc/version_info.html.template rename to src/doc/version_info.html.template