mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 05:34:49 +00:00
fix(doc): fix rustdoc bare_urls warning (#11921)
This commit is contained in:
parent
f9d29115a0
commit
bb99d5da4c
10 changed files with 15 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||
//! This module is meant to eventually implement HTTP cache
|
||||
//! as defined in RFC 7234 (https://tools.ietf.org/html/rfc7234).
|
||||
//! as defined in RFC 7234 (<https://tools.ietf.org/html/rfc7234>).
|
||||
//! Currently it's a very simplified version to fulfill Deno needs
|
||||
//! at hand.
|
||||
use crate::fs_util;
|
||||
|
|
|
@ -160,7 +160,7 @@ impl ImportMap {
|
|||
|
||||
/// Parse provided key as import map specifier.
|
||||
///
|
||||
/// Specifiers must be valid URLs (eg. "https://deno.land/x/std/testing/asserts.ts")
|
||||
/// Specifiers must be valid URLs (eg. "`https://deno.land/x/std/testing/asserts.ts`")
|
||||
/// or "bare" specifiers (eg. "moment").
|
||||
fn normalize_specifier_key(
|
||||
specifier_key: &str,
|
||||
|
|
|
@ -20,7 +20,7 @@ lazy_static::lazy_static! {
|
|||
/// Matches the `encodeURIComponent()` encoding from JavaScript, which matches
|
||||
/// the component percent encoding set.
|
||||
///
|
||||
/// See: https://url.spec.whatwg.org/#component-percent-encode-set
|
||||
/// See: <https://url.spec.whatwg.org/#component-percent-encode-set>
|
||||
///
|
||||
// TODO(@kitsonk) - refactor when #9934 is landed.
|
||||
const COMPONENT: &percent_encoding::AsciiSet = &percent_encoding::CONTROLS
|
||||
|
|
|
@ -29,7 +29,7 @@ pub fn detect_charset(bytes: &'_ [u8]) -> &'static str {
|
|||
///
|
||||
/// Supports all encodings supported by the encoding_rs crate, which includes
|
||||
/// all encodings specified in the WHATWG Encoding Standard, and only those
|
||||
/// encodings (see: https://encoding.spec.whatwg.org/).
|
||||
/// encodings (see: <https://encoding.spec.whatwg.org/>).
|
||||
pub fn convert_to_utf8<'a>(
|
||||
bytes: &'a [u8],
|
||||
charset: &'_ str,
|
||||
|
|
|
@ -89,7 +89,7 @@ pub async fn format(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
/// Formats markdown (using https://github.com/dprint/dprint-plugin-markdown) and its code blocks
|
||||
/// Formats markdown (using <https://github.com/dprint/dprint-plugin-markdown>) and its code blocks
|
||||
/// (ts/tsx, js/jsx).
|
||||
fn format_markdown(
|
||||
file_text: &str,
|
||||
|
@ -144,8 +144,8 @@ fn format_markdown(
|
|||
}
|
||||
|
||||
/// Formats JSON and JSONC using the rules provided by .deno()
|
||||
/// of configuration builder of https://github.com/dprint/dprint-plugin-json.
|
||||
/// See https://git.io/Jt4ht for configuration.
|
||||
/// of configuration builder of <https://github.com/dprint/dprint-plugin-json>.
|
||||
/// See <https://git.io/Jt4ht> for configuration.
|
||||
fn format_json(file_text: &str) -> Result<String, String> {
|
||||
let json_config = get_json_config();
|
||||
dprint_plugin_json::format_text(file_text, &json_config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue