diff --git a/.divinerconfig b/.divinerconfig deleted file mode 100644 --- a/.divinerconfig +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name" : "libphutil", - "src_link" : - "https://secure.phabricator.com/diffusion/PHU/browse/master/%f$%l", - "groups" : { - "overview" : "Overview", - "contrib" : "Contributing to libphutil", - "working" : "Working with libphutil", - "util" : "Core Utilities", - "library" : "Phutil Library System", - "utf8" : "UTF-8", - "internationalization" : "Internationalization", - "filesystem" : "Filesystem", - "exec" : "Command Execution", - "futures" : "Futures", - "channel" : "Channels (I/O Wrappers)", - "aws" : "Amazon Web Services", - "error" : "Error Handling", - "markup" : "Markup", - "console" : "Console Utilities", - "aast" : "Abstract Abstract Syntax Tree", - "xhpast" : "XHPAST (PHP/XHP Parser)", - "conduit" : "Conduit (Service API)", - "event" : "Events", - "daemon" : "Daemons", - "parser" : "Other Parsers", - "testcase" : "Test Cases" - }, - "engines" : [ - ["DivinerArticleEngine", {}], - ["DivinerXHPEngine", {}] - ] -} diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -379,6 +379,7 @@ 'phutil_is_utf8' => 'utils/utf8.php', 'phutil_is_utf8_with_only_bmp_characters' => 'utils/utf8.php', 'phutil_is_windows' => 'utils/utils.php', + 'phutil_json_decode' => 'utils/utils.php', 'phutil_loggable_string' => 'utils/utils.php', 'phutil_passthru' => 'future/exec/execx.php', 'phutil_safe_html' => 'markup/render.php', diff --git a/src/docs/aws.diviner b/src/docs/article/aws.diviner rename from src/docs/aws.diviner rename to src/docs/article/aws.diviner diff --git a/src/docs/command_execution.diviner b/src/docs/article/command_execution.diviner rename from src/docs/command_execution.diviner rename to src/docs/article/command_execution.diviner diff --git a/src/docs/core_quick_reference.diviner b/src/docs/article/core_quick_reference.diviner rename from src/docs/core_quick_reference.diviner rename to src/docs/article/core_quick_reference.diviner diff --git a/src/docs/developing_xhpast.diviner b/src/docs/article/developing_xhpast.diviner rename from src/docs/developing_xhpast.diviner rename to src/docs/article/developing_xhpast.diviner diff --git a/src/docs/overview.diviner b/src/docs/article/overview.diviner rename from src/docs/overview.diviner rename to src/docs/article/overview.diviner diff --git a/src/docs/using_futures.diviner b/src/docs/article/using_futures.diviner rename from src/docs/using_futures.diviner rename to src/docs/article/using_futures.diviner diff --git a/src/docs/book/libphutil.book b/src/docs/book/libphutil.book new file mode 100644 --- /dev/null +++ b/src/docs/book/libphutil.book @@ -0,0 +1,24 @@ +{ + "name" : "libphutil", + "title" : "libphutil Technical Documentation", + "short" : "libphutil Tech Docs", + "preface" : "Technical documentation for developers using libphutil.", + "root" : "../../../", + "uri.source" : + "https://secure.phabricator.com/diffusion/PHU/browse/master/%f$%l", + "rules" : { + "(\\.php$)" : "DivinerPHPAtomizer", + "(\\.diviner$)" : "DivinerArticleAtomizer" + }, + "exclude" : [ + "(^externals/)", + "(^scripts/)", + "(^support/)", + "(^resources/)" + ], + "groups" : { + "overview" : { + "name" : "libphutil Overview" + } + } +} diff --git a/src/docs/drafts/dom_datastore.txt b/src/docs/draft/dom_datastore.txt rename from src/docs/drafts/dom_datastore.txt rename to src/docs/draft/dom_datastore.txt diff --git a/src/docs/drafts/javascript_scope_resolution.txt b/src/docs/draft/javascript_scope_resolution.txt rename from src/docs/drafts/javascript_scope_resolution.txt rename to src/docs/draft/javascript_scope_resolution.txt diff --git a/src/docs/drafts/using_exceptions.txt b/src/docs/draft/using_exceptions.txt rename from src/docs/drafts/using_exceptions.txt rename to src/docs/draft/using_exceptions.txt diff --git a/src/docs/drafts/using_queryfx.txt b/src/docs/draft/using_queryfx.txt rename from src/docs/drafts/using_queryfx.txt rename to src/docs/draft/using_queryfx.txt