diff options
author | Vlad Dumitrescu <[email protected]> | 2015-01-16 09:39:31 +0100 |
---|---|---|
committer | Vlad Dumitrescu <[email protected]> | 2015-01-16 09:39:31 +0100 |
commit | 6f492b98505ee6d68b9f438915dfbd3616a1b729 (patch) | |
tree | 5c7a716d0aded23df9ec555fe591db69adb6b2e0 /lib/edoc/src/edoc_extract.erl | |
parent | 341bd39f8c3b09b9fdaddbdadce42e80a2b3060d (diff) | |
download | otp-6f492b98505ee6d68b9f438915dfbd3616a1b729.tar.gz otp-6f492b98505ee6d68b9f438915dfbd3616a1b729.tar.bz2 otp-6f492b98505ee6d68b9f438915dfbd3616a1b729.zip |
[edoc] remove functionality related to packages
The 'subpackages' option is left, since some projects use recursive
source directories.
Diffstat (limited to 'lib/edoc/src/edoc_extract.erl')
-rw-r--r-- | lib/edoc/src/edoc_extract.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/edoc/src/edoc_extract.erl b/lib/edoc/src/edoc_extract.erl index 67a95e80aa..a2a1a6b718 100644 --- a/lib/edoc/src/edoc_extract.erl +++ b/lib/edoc/src/edoc_extract.erl @@ -121,10 +121,8 @@ source1(Tree, File0, Env, Opts, TypeDocs) -> Module = get_module_info(Tree, File), {Header, Footer, Entries} = collect(Forms, Module), Name = Module#module.name, - Package = '', Env1 = Env#env{module = Name, - package = Package, - root = edoc_refs:relative_package_path('', Package)}, + root = ""}, Env2 = add_macro_defs(module_macros(Env1), Opts, Env1), Entries1 = get_tags([Header, Footer | Entries], Env2, File, TypeDocs), Entries2 = edoc_specs:add_data(Entries1, Opts, File, Module), @@ -218,7 +216,7 @@ add_macro_defs(Defs0, Opts, Env) -> %% @spec file(File::filename(), Context, Env::edoc_env(), %% Options::proplist()) -> {ok, Tags} | {error, Reason} -%% Context = overview | package +%% Context = overview %% Tags = [term()] %% Reason = term() %% @@ -249,7 +247,7 @@ file(File, Context, Env, Opts) -> %% @spec (Text::string(), Context, Env::edoc_env(), %% Options::proplist()) -> Tags -%% Context = overview | package +%% Context = overview %% Tags = [term()] %% %% @doc Returns the list of tags in the text. Any lines of text before |