Skip to content

Commit

Permalink
Docs: more fixes on sample/source links
Browse files Browse the repository at this point in the history
  • Loading branch information
nanangizz committed Aug 30, 2023
1 parent 013c303 commit bd29a27
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 17 deletions.
2 changes: 2 additions & 0 deletions pjlib-util/docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ GENERATE_DEPRECATEDLIST= YES
# You can put \n's in the value part of an alias to insert newlines.

ALIASES =
ALIASES += src{1}="\verbatim embed:rst:inline :source:`\1` \endverbatim"
ALIASES += srcdir{1}="\verbatim embed:rst:inline :sourcedir:`\1` \endverbatim"

# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
Expand Down
1 change: 1 addition & 0 deletions pjlib/docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ GENERATE_DEPRECATEDLIST= YES

ALIASES =
ALIASES += src{1}="\verbatim embed:rst:inline :source:`\1` \endverbatim"
ALIASES += srcdir{1}="\verbatim embed:rst:inline :sourcedir:`\1` \endverbatim"

# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
Expand Down
8 changes: 4 additions & 4 deletions pjlib/include/pj/except.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ PJ_BEGIN_DECL
* \section pj_except_sample_sec Quick Example
*
* For the impatient, take a look at some examples:
* - @ref page_pjlib_samples_except_c
* - @ref page_pjlib_exception_test
* - Exception Handling sample: \src{pjlib/src/pjlib-samples/except.c}
* - Exception Handling test: \src{pjlib/src/pjlib-test/exception.c}
*
* \section pj_except_except Exception Handling
*
Expand Down Expand Up @@ -217,8 +217,8 @@ PJ_BEGIN_DECL
* \section pj_except_examples_sec Examples
*
* For some examples on how to use the exception construct, please see:
* - @ref page_pjlib_samples_except_c
* - @ref page_pjlib_exception_test
* - Exception Handling sample: \src{pjlib/src/pjlib-samples/except.c}
* - Exception Handling test: \src{pjlib/src/pjlib-test/exception.c}
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions pjlib/include/pj/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ PJ_BEGIN_DECL
* \section pj_list_example_sec Examples
*
* See below for examples on how to manipulate linked list:
* - @ref page_pjlib_samples_list_c
* - @ref page_pjlib_list_test
* - List sample: \src{pjlib/src/pjlib-samples/list.c}
* - List test: \src{pjlib/src/pjlib-test/list.c}
*/


Expand Down
2 changes: 1 addition & 1 deletion pjlib/include/pj/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PJ_BEGIN_DECL
* \section pj_log_quick_sample_sec Examples
*
* For examples, see:
* - @ref page_pjlib_samples_log_c.
* - Simple Log sample: \src{pjlib/src/pjlib-samples/log.c}
*
*/

Expand Down
2 changes: 1 addition & 1 deletion pjlib/include/pj/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ PJ_DECL(void*) pj_thread_local_get(long index);
* \section pj_atomic_examples_sec Examples
*
* For some example codes, please see:
* - @ref page_pjlib_atomic_test
* - Atomic Variable test: \src{pjlib/src/pjlib-test/atomic.c}
*/


Expand Down
2 changes: 1 addition & 1 deletion pjlib/include/pj/pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ PJ_BEGIN_DECL
* \section PJ_POOL_EXAMPLES_SEC Examples
*
* For some sample codes on how to use the pool, please see:
* - @ref page_pjlib_pool_test
* - Pool test: \src{pjlib/src/pjlib-test/pool.c}
*
* @{
*/
Expand Down
2 changes: 1 addition & 1 deletion pjlib/include/pj/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ PJ_BEGIN_DECL
* \section pj_pstr_examples_sec Examples
*
* For some examples, please see:
* - @ref page_pjlib_string_test
* - String test: \src{pjlib/src/pjlib-test/string.c}
*/

/**
Expand Down
2 changes: 2 additions & 0 deletions pjmedia/docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ GENERATE_DEPRECATEDLIST= YES
# You can put \n's in the value part of an alias to insert newlines.

ALIASES =
ALIASES += src{1}="\verbatim embed:rst:inline :source:`\1` \endverbatim"
ALIASES += srcdir{1}="\verbatim embed:rst:inline :sourcedir:`\1` \endverbatim"

# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
Expand Down
2 changes: 1 addition & 1 deletion pjnath/docs/doc_ice.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ provides the best example on how to do this.
\section ice_samples_sec Samples
The \ref ice_demo_sample sample demonstrates how to use
The ICE demo sample \src{pjsip-apps/src/samples/icedemo.c} demonstrates how to use
\ref PJNATH_ICE_STREAM_TRANSPORT <b>without</b> using signaling
protocol such as <b>SIP</b>. It provides interactive user interface
to create and manage the ICE sessions as well as to exchange SDP
Expand Down
8 changes: 4 additions & 4 deletions pjnath/docs/doc_samples.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ below were taken on a Windows machine, but the library is very portable and
it is known to run on platforms such as Linux, MacOS X, Windows Mobile,
Symbian, and so on.
- @ref ice_demo_sample \n
- ICE demo sample: \src{pjsip-apps/src/samples/icedemo.c} \n
This sample demonstrates how to use \ref PJNATH_ICE_STREAM_TRANSPORT
<b>without</b> using signaling protocol such as <b>SIP</b>. It provides
interactive user interface to create and manage the ICE sessions as well
as to exchange SDP with another ice_demo instance.\n\n
as to exchange SDP with another ICE demo instance.\n\n
\image html ice_demo.jpg "ice_demo on WinXP"
- @ref turn_client_sample \n
- TURN client sample: \srcdir{pjnath/src/pjturn-client/} \n
This sample demonstrates how to use \ref PJNATH_TURN_SOCK
and also \ref PJNATH_STUN_SOCK. It provides interactive
user interface to manage allocation, permissions, and
channel bindings.\n\n
\image html pjturn_client.jpg "pjturn_client on WinXP"
- TURN server sample \n
- TURN server sample: \srcdir{pjnath/src/pjturn-srv/} \n
This is a simple sample TURN server application, which
we mainly use for testing (as back then there is no TURN
server available).\n
Expand Down
2 changes: 2 additions & 0 deletions pjnath/docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ GENERATE_DEPRECATEDLIST= YES
# You can put \n's in the value part of an alias to insert newlines.

ALIASES =
ALIASES += src{1}="\verbatim embed:rst:inline :source:`\1` \endverbatim"
ALIASES += srcdir{1}="\verbatim embed:rst:inline :sourcedir:`\1` \endverbatim"

# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
Expand Down
Binary file removed pjnath/docs/pjturn_client.jpg
Binary file not shown.
2 changes: 2 additions & 0 deletions pjsip/docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ GENERATE_DEPRECATEDLIST= YES
# You can put \n's in the value part of an alias to insert newlines.

ALIASES =
ALIASES += src{1}="\verbatim embed:rst:inline :source:`\1` \endverbatim"
ALIASES += srcdir{1}="\verbatim embed:rst:inline :sourcedir:`\1` \endverbatim"

# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
Expand Down
4 changes: 2 additions & 2 deletions pjsip/include/pjsua-lib/pjsua.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ PJ_BEGIN_DECL
*
* Few samples are provided:
*
- @ref page_pjsip_sample_simple_pjsuaua_c \n
- Simple pjsua app: \src{pjsip-apps/src/samples/simple_pjsua.c} \n
Very simple SIP User Agent with registration, call, and media, using
PJSUA-API, all in under 200 lines of code.
- @ref page_pjsip_samples_pjsua \n
- Pjsua app: \srcdir{pjsip-apps/src/pjsua/} \n
This is the reference implementation for PJSIP and PJMEDIA.
PJSUA is a console based application, designed to be simple enough
to be readble, but powerful enough to demonstrate all features
Expand Down

0 comments on commit bd29a27

Please sign in to comment.