Skip to content

Commit 525577c

Browse files
committed
📚 Consistent heading levels inside method rdoc
All headings inside Net::IMAP method rdoc have been set to `h4`. This assumes that the method documentation is already three levels deep: * `<h1>` -- the page title, i.e: the class name * `<h2>` -- the category, i.e: "Instance Methods" * `<h3>` -- the method name The first two heading levels _are_ defined on the page, but the third level is unfortunately output as a `<div>`, not an `<h3>`.
1 parent c287366 commit 525577c

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

lib/net/imap.rb

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ def capability
11231123
#
11241124
# See [ID[https://tools.ietf.org/html/rfc2971]] for field definitions.
11251125
#
1126-
# ===== Capabilities
1126+
# ==== Capabilities
11271127
#
11281128
# The server's capabilities must include +ID+
11291129
# [RFC2971[https://tools.ietf.org/html/rfc2971]].
@@ -1205,7 +1205,7 @@ def logout!
12051205
#
12061206
# Related: Net::IMAP.new, #login, #authenticate
12071207
#
1208-
# ===== Capability
1208+
# ==== Capability
12091209
# Clients should not call #starttls unless the server advertises the
12101210
# +STARTTLS+ capability.
12111211
#
@@ -1352,7 +1352,7 @@ def authenticate(*args, sasl_ir: config.sasl_ir, **props, &callback)
13521352
#
13531353
# Related: #authenticate, #starttls
13541354
#
1355-
# ===== Capabilities
1355+
# ==== Capabilities
13561356
#
13571357
# An IMAP client MUST NOT call #login when the server advertises the
13581358
# +LOGINDISABLED+ capability. By default, Net::IMAP will raise a
@@ -1393,7 +1393,7 @@ def login(user, password)
13931393
#
13941394
# Related: #examine
13951395
#
1396-
# ===== Capabilities
1396+
# ==== Capabilities
13971397
#
13981398
# If [UIDPLUS[https://www.rfc-editor.org/rfc/rfc4315.html]] is supported,
13991399
# the server may return an untagged "NO" response with a "UIDNOTSTICKY"
@@ -1511,7 +1511,7 @@ def unsubscribe(mailbox)
15111511
#
15121512
# Related: #lsub, MailboxList
15131513
#
1514-
# ===== For example:
1514+
# ==== For example:
15151515
#
15161516
# imap.create("foo/bar")
15171517
# imap.create("foo/baz")
@@ -1562,7 +1562,7 @@ def list(refname, mailbox)
15621562
#
15631563
# Related: #list, Namespaces, Namespace
15641564
#
1565-
# ===== For example:
1565+
# ==== For example:
15661566
#
15671567
# if capable?("NAMESPACE")
15681568
# namespaces = imap.namespace
@@ -1576,7 +1576,7 @@ def list(refname, mailbox)
15761576
# end
15771577
# end
15781578
#
1579-
# ===== Capabilities
1579+
# ==== Capabilities
15801580
#
15811581
# The server's capabilities must include +NAMESPACE+
15821582
# [RFC2342[https://tools.ietf.org/html/rfc2342]].
@@ -1615,7 +1615,7 @@ def namespace
16151615
#
16161616
# Related: #list, MailboxList
16171617
#
1618-
# ===== Capabilities
1618+
# ==== Capabilities
16191619
#
16201620
# The server's capabilities must include +XLIST+,
16211621
# a deprecated Gmail extension (replaced by +SPECIAL-USE+).
@@ -1638,7 +1638,7 @@ def xlist(refname, mailbox)
16381638
#
16391639
# Related: #getquota, #setquota, MailboxQuotaRoot, MailboxQuota
16401640
#
1641-
# ===== Capabilities
1641+
# ==== Capabilities
16421642
#
16431643
# The server's capabilities must include +QUOTA+
16441644
# [RFC2087[https://tools.ietf.org/html/rfc2087]].
@@ -1659,7 +1659,7 @@ def getquotaroot(mailbox)
16591659
#
16601660
# Related: #getquotaroot, #setquota, MailboxQuota
16611661
#
1662-
# ===== Capabilities
1662+
# ==== Capabilities
16631663
#
16641664
# The server's capabilities must include +QUOTA+
16651665
# [RFC2087[https://tools.ietf.org/html/rfc2087]].
@@ -1677,7 +1677,7 @@ def getquota(mailbox)
16771677
#
16781678
# Related: #getquota, #getquotaroot
16791679
#
1680-
# ===== Capabilities
1680+
# ==== Capabilities
16811681
#
16821682
# The server's capabilities must include +QUOTA+
16831683
# [RFC2087[https://tools.ietf.org/html/rfc2087]].
@@ -1697,7 +1697,7 @@ def setquota(mailbox, quota)
16971697
#
16981698
# Related: #getacl
16991699
#
1700-
# ===== Capabilities
1700+
# ==== Capabilities
17011701
#
17021702
# The server's capabilities must include +ACL+
17031703
# [RFC4314[https://tools.ietf.org/html/rfc4314]].
@@ -1715,7 +1715,7 @@ def setacl(mailbox, user, rights)
17151715
#
17161716
# Related: #setacl, MailboxACLItem
17171717
#
1718-
# ===== Capabilities
1718+
# ==== Capabilities
17191719
#
17201720
# The server's capabilities must include +ACL+
17211721
# [RFC4314[https://tools.ietf.org/html/rfc4314]].
@@ -1752,7 +1752,7 @@ def lsub(refname, mailbox)
17521752
# for +mailbox+ cannot be returned; for instance, because it
17531753
# does not exist.
17541754
#
1755-
# ===== Supported attributes
1755+
# ==== Supported attributes
17561756
#
17571757
# +MESSAGES+:: The number of messages in the mailbox.
17581758
#
@@ -1783,12 +1783,12 @@ def lsub(refname, mailbox)
17831783
# Unsupported attributes may be requested. The attribute value will be
17841784
# either an Integer or an ExtensionData object.
17851785
#
1786-
# ===== For example:
1786+
# ==== For example:
17871787
#
17881788
# p imap.status("inbox", ["MESSAGES", "RECENT"])
17891789
# #=> {"RECENT"=>0, "MESSAGES"=>44}
17901790
#
1791-
# ===== Capabilities
1791+
# ==== Capabilities
17921792
#
17931793
# +SIZE+ requires the server's capabilities to include either +IMAP4rev2+ or
17941794
# <tt>STATUS=SIZE</tt>
@@ -1828,7 +1828,7 @@ def status(mailbox, attr)
18281828
# not exist (it is not created automatically), or if the flags,
18291829
# date_time, or message arguments contain errors.
18301830
#
1831-
# ===== Capabilities
1831+
# ==== Capabilities
18321832
#
18331833
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
18341834
# supported and the destination supports persistent UIDs, the server's
@@ -1877,7 +1877,7 @@ def close
18771877
#
18781878
# Related: #close
18791879
#
1880-
# ===== Capabilities
1880+
# ==== Capabilities
18811881
#
18821882
# The server's capabilities must include +UNSELECT+
18831883
# [RFC3691[https://tools.ietf.org/html/rfc3691]].
@@ -1918,7 +1918,7 @@ def expunge
19181918
#
19191919
# Related: #expunge
19201920
#
1921-
# ===== Capabilities
1921+
# ==== Capabilities
19221922
#
19231923
# The server's capabilities must include +UIDPLUS+
19241924
# [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]].
@@ -2249,7 +2249,7 @@ def uid_search(...)
22492249
#
22502250
# Related: #uid_search, FetchData
22512251
#
2252-
# ===== For example:
2252+
# ==== For example:
22532253
#
22542254
# p imap.fetch(6..8, "UID")
22552255
# #=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}>, \\
@@ -2267,7 +2267,7 @@ def uid_search(...)
22672267
# p data.attr["UID"]
22682268
# #=> 98
22692269
#
2270-
# ===== Capabilities
2270+
# ==== Capabilities
22712271
#
22722272
# Many extensions define new message +attr+ names. See FetchData for a list
22732273
# of supported extension fields.
@@ -2296,7 +2296,7 @@ def fetch(set, attr, mod = nil, changedsince: nil)
22962296
#
22972297
# Related: #fetch, FetchData
22982298
#
2299-
# ===== Capabilities
2299+
# ==== Capabilities
23002300
# Same as #fetch.
23012301
def uid_fetch(set, attr, mod = nil, changedsince: nil)
23022302
fetch_internal("UID FETCH", set, attr, mod, changedsince: changedsince)
@@ -2330,14 +2330,14 @@ def uid_fetch(set, attr, mod = nil, changedsince: nil)
23302330
#
23312331
# Related: #uid_store
23322332
#
2333-
# ===== For example:
2333+
# ==== For example:
23342334
#
23352335
# p imap.store(6..8, "+FLAGS", [:Deleted])
23362336
# #=> [#<Net::IMAP::FetchData seqno=6, attr={"FLAGS"=>[:Seen, :Deleted]}>,
23372337
# #<Net::IMAP::FetchData seqno=7, attr={"FLAGS"=>[:Seen, :Deleted]}>,
23382338
# #<Net::IMAP::FetchData seqno=8, attr={"FLAGS"=>[:Seen, :Deleted]}>]
23392339
#
2340-
# ===== Capabilities
2340+
# ==== Capabilities
23412341
#
23422342
# Extensions may define new data items to be used with #store.
23432343
#
@@ -2361,7 +2361,7 @@ def store(set, attr, flags, unchangedsince: nil)
23612361
#
23622362
# Related: #store
23632363
#
2364-
# ===== Capabilities
2364+
# ==== Capabilities
23652365
# Same as #store.
23662366
def uid_store(set, attr, flags, unchangedsince: nil)
23672367
store_internal("UID STORE", set, attr, flags, unchangedsince: unchangedsince)
@@ -2374,7 +2374,7 @@ def uid_store(set, attr, flags, unchangedsince: nil)
23742374
#
23752375
# Related: #uid_copy
23762376
#
2377-
# ===== Capabilities
2377+
# ==== Capabilities
23782378
#
23792379
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
23802380
# supported, the server's response should include a +COPYUID+ response code
@@ -2391,7 +2391,7 @@ def copy(set, mailbox)
23912391
#
23922392
# Similar to #copy, but +set+ contains unique identifiers.
23932393
#
2394-
# ===== Capabilities
2394+
# ==== Capabilities
23952395
#
23962396
# +UIDPLUS+ affects #uid_copy the same way it affects #copy.
23972397
def uid_copy(set, mailbox)
@@ -2406,7 +2406,7 @@ def uid_copy(set, mailbox)
24062406
#
24072407
# Related: #uid_move
24082408
#
2409-
# ===== Capabilities
2409+
# ==== Capabilities
24102410
#
24112411
# The server's capabilities must include +MOVE+
24122412
# [RFC6851[https://tools.ietf.org/html/rfc6851]].
@@ -2430,7 +2430,7 @@ def move(set, mailbox)
24302430
#
24312431
# Related: #move
24322432
#
2433-
# ===== Capabilities
2433+
# ==== Capabilities
24342434
#
24352435
# Same as #move: The server's capabilities must include +MOVE+
24362436
# [RFC6851[https://tools.ietf.org/html/rfc6851]]. +UIDPLUS+ also affects
@@ -2450,14 +2450,14 @@ def uid_move(set, mailbox)
24502450
#
24512451
# Related: #uid_sort, #search, #uid_search, #thread, #uid_thread
24522452
#
2453-
# ===== For example:
2453+
# ==== For example:
24542454
#
24552455
# p imap.sort(["FROM"], ["ALL"], "US-ASCII")
24562456
# #=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
24572457
# p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
24582458
# #=> [6, 7, 8, 1]
24592459
#
2460-
# ===== Capabilities
2460+
# ==== Capabilities
24612461
#
24622462
# The server's capabilities must include +SORT+
24632463
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2472,7 +2472,7 @@ def sort(sort_keys, search_keys, charset)
24722472
#
24732473
# Related: #sort, #search, #uid_search, #thread, #uid_thread
24742474
#
2475-
# ===== Capabilities
2475+
# ==== Capabilities
24762476
#
24772477
# The server's capabilities must include +SORT+
24782478
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2497,7 +2497,7 @@ def uid_sort(sort_keys, search_keys, charset)
24972497
#
24982498
# Related: #uid_thread, #search, #uid_search, #sort, #uid_sort
24992499
#
2500-
# ===== Capabilities
2500+
# ==== Capabilities
25012501
#
25022502
# The server's capabilities must include +THREAD+
25032503
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2511,7 +2511,7 @@ def thread(algorithm, search_keys, charset)
25112511
#
25122512
# Related: #thread, #search, #uid_search, #sort, #uid_sort
25132513
#
2514-
# ===== Capabilities
2514+
# ==== Capabilities
25152515
#
25162516
# The server's capabilities must include +THREAD+
25172517
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2530,7 +2530,7 @@ def uid_thread(algorithm, search_keys, charset)
25302530
#
25312531
# Related: #capable?, #capabilities, #capability
25322532
#
2533-
# ===== Capabilities
2533+
# ==== Capabilities
25342534
#
25352535
# The server's capabilities must include
25362536
# +ENABLE+ [RFC5161[https://tools.ietf.org/html/rfc5161]]
@@ -2632,7 +2632,7 @@ def enable(*capabilities)
26322632
#
26332633
# Related: #idle_done, #noop, #check
26342634
#
2635-
# ===== Capabilities
2635+
# ==== Capabilities
26362636
#
26372637
# The server's capabilities must include +IDLE+
26382638
# [RFC2177[https://tools.ietf.org/html/rfc2177]].
@@ -2749,7 +2749,7 @@ def idle_done
27492749
#
27502750
# Related: #extract_responses, #clear_responses, #response_handlers, #greeting
27512751
#
2752-
# ===== Thread safety
2752+
# ==== Thread safety
27532753
# >>>
27542754
# *Note:* Access to the responses hash is synchronized for thread-safety.
27552755
# The receiver thread and response_handlers cannot process new responses
@@ -2763,7 +2763,7 @@ def idle_done
27632763
# thread, but will not modify any responses after adding them to the
27642764
# responses hash.
27652765
#
2766-
# ===== Clearing responses
2766+
# ==== Clearing responses
27672767
#
27682768
# Previously unhandled responses are automatically cleared before entering a
27692769
# mailbox with #select or #examine. Long-lived connections can receive many
@@ -2772,7 +2772,7 @@ def idle_done
27722772
# the block, or remove responses with #extract_responses, #clear_responses,
27732773
# or #add_response_handler.
27742774
#
2775-
# ===== Missing responses
2775+
# ==== Missing responses
27762776
#
27772777
# Only non-+nil+ data is stored. Many important response codes have no data
27782778
# of their own, but are used as "tags" on the ResponseText object they are

0 commit comments

Comments
 (0)