diff options
author | Lars G Thorsen <lars@erlang.org> | 2010-02-16 10:57:49 +0000 |
---|---|---|
committer | Erlang/OTP <otp@erlang.org> | 2010-02-16 10:57:49 +0000 |
commit | fe9f24c5ee871384333ddf5991fab125a4bdb8bb (patch) | |
tree | f99824093ca5457e86ff0642e56a4b25ee67f5bd /system | |
parent | 695c11cc64f62c112d40c1db24195643fe7afe11 (diff) | |
download | erlang-fe9f24c5ee871384333ddf5991fab125a4bdb8bb.tar.gz |
OTP-8343 The documentation is now possible to build in an open source
environment after a number of bugs are fixed and some features
are added in the documentation build process.
- The arity calculation is updated.
- The module prefix used in the function names for bif's are
removed in the generated links so the links will look like
"http://www.erlang.org/doc/man/erlang.html#append_element-2"
instead of
"http://www.erlang.org/doc/man/erlang.html#erlang:append_element-
2".
- Enhanced the menu positioning in the html documentation when a
new page is loaded.
- A number of corrections in the generation of man pages (thanks
to Sergei Golovan)
- The legal notice is taken from the xml book file so OTP's build
process can be used for non OTP applications.
Diffstat (limited to 'system')
-rw-r--r-- | system/doc/top/src/erl_html_tools.erl | 2 | ||||
-rw-r--r-- | system/doc/top/src/otp_man_index.erl | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/system/doc/top/src/erl_html_tools.erl b/system/doc/top/src/erl_html_tools.erl index 8a5c744128..c920245f94 100644 --- a/system/doc/top/src/erl_html_tools.erl +++ b/system/doc/top/src/erl_html_tools.erl @@ -212,6 +212,8 @@ get_app_dirs(Dir) -> lists:map(fun(File) -> {File, filename:join([Dir, File])} end, Files), lists:zf(fun is_app_with_doc/1, AFiles). +is_app_with_doc({"." ++ ADir, _APath}) -> + false; is_app_with_doc({ADir, APath}) -> case file:read_file_info(filename:join([APath, "info"])) of {ok, _FileInfo} -> diff --git a/system/doc/top/src/otp_man_index.erl b/system/doc/top/src/otp_man_index.erl index 78ecd8b954..0fdc531b37 100644 --- a/system/doc/top/src/otp_man_index.erl +++ b/system/doc/top/src/otp_man_index.erl @@ -117,6 +117,8 @@ get_app_dirs(Dir) -> lists:map(fun(File) -> {File, filename:join([Dir, File])} end, Files), lists:zf(fun is_app_with_doc/1, AFiles). +is_app_with_doc({"." ++ ADir, _APath}) -> + false; is_app_with_doc({ADir, APath}) -> case file:read_file_info(filename:join([APath, "info"])) of {ok, _FileInfo} -> |