This is an automated email from the ASF dual-hosted git repository. erickguan pushed a commit to branch services-hf-honor-hf-hub-disable-xet in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 3a4d20bc4ec360426032d2c9d2f714784bc5ef7c Author: Erick Guan <[email protected]> AuthorDate: Tue Jun 30 11:57:33 2026 +0800 Generate docs --- website/data/services.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/data/services.json b/website/data/services.json index 2580993e8..6fde5690c 100644 --- a/website/data/services.json +++ b/website/data/services.json @@ -1965,7 +1965,7 @@ "type": "string", "required": false, "group": "General", - "comments": "Download mode. Either `xet` (default) or `http`." + "comments": "Download mode. Either `xet` (default) or `http`.\n\nWhen unset, the mode is resolved from the `HF_HUB_DISABLE_XET`\nenvironment variable: a non-empty value forces `http`, otherwise it\ndefaults to `xet`. An explicit value here takes precedence.\n\nSee <https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables#hfhubdisablexet>." } ], "examples": [ @@ -1973,25 +1973,25 @@ "binding": "rust", "language": "rust", "minimal": "use opendal::Operator;\n\nlet op = Operator::via_iter(\"hf\", [\n])?;", - "full": "use opendal::Operator;\n\nlet op = Operator::via_iter(\"hf\", [\n // Repo type of this backend. Required.\n // (\"repo_type\".to_string(), \"...\".to_string()),\n\n // Repo id of this backend.\n //\n // This is required.\n // (\"repo_id\".to_string(), \"...\".to_string()),\n\n // Revision of this backend.\n //\n // Default is main.\n // (\"revision\".to_string(), \"...\".to_string()),\n\n // Root of this backend. Can be \"/path/to/dir\" [...] + "full": "use opendal::Operator;\n\nlet op = Operator::via_iter(\"hf\", [\n // Repo type of this backend. Required.\n // (\"repo_type\".to_string(), \"...\".to_string()),\n\n // Repo id of this backend.\n //\n // This is required.\n // (\"repo_id\".to_string(), \"...\".to_string()),\n\n // Revision of this backend.\n //\n // Default is main.\n // (\"revision\".to_string(), \"...\".to_string()),\n\n // Root of this backend. Can be \"/path/to/dir\" [...] }, { "binding": "python", "language": "python", "minimal": "import opendal\n\nop = opendal.Operator(\n \"hf\",\n)", - "full": "import opendal\n\nop = opendal.Operator(\n \"hf\",\n # Repo type of this backend. Required.\n # repo_type=\"...\",\n\n # Repo id of this backend.\n #\n # This is required.\n # repo_id=\"...\",\n\n # Revision of this backend.\n #\n # Default is main.\n # revision=\"...\",\n\n # Root of this backend. Can be \"/path/to/dir\".\n #\n # Default is \"/\".\n # root=\"...\",\n\n # Token of this backend.\n #\n # This is optio [...] + "full": "import opendal\n\nop = opendal.Operator(\n \"hf\",\n # Repo type of this backend. Required.\n # repo_type=\"...\",\n\n # Repo id of this backend.\n #\n # This is required.\n # repo_id=\"...\",\n\n # Revision of this backend.\n #\n # Default is main.\n # revision=\"...\",\n\n # Root of this backend. Can be \"/path/to/dir\".\n #\n # Default is \"/\".\n # root=\"...\",\n\n # Token of this backend.\n #\n # This is optio [...] }, { "binding": "nodejs", "language": "javascript", "minimal": "import { Operator } from \"opendal\";\n\nconst op = new Operator(\"hf\", {\n});", - "full": "import { Operator } from \"opendal\";\n\nconst op = new Operator(\"hf\", {\n // Repo type of this backend. Required.\n // repo_type: \"...\",\n\n // Repo id of this backend.\n //\n // This is required.\n // repo_id: \"...\",\n\n // Revision of this backend.\n //\n // Default is main.\n // revision: \"...\",\n\n // Root of this backend. Can be \"/path/to/dir\".\n //\n // Default is \"/\".\n // root: \"...\",\n\n // Token of this backend.\n //\n // This [...] + "full": "import { Operator } from \"opendal\";\n\nconst op = new Operator(\"hf\", {\n // Repo type of this backend. Required.\n // repo_type: \"...\",\n\n // Repo id of this backend.\n //\n // This is required.\n // repo_id: \"...\",\n\n // Revision of this backend.\n //\n // Default is main.\n // revision: \"...\",\n\n // Root of this backend. Can be \"/path/to/dir\".\n //\n // Default is \"/\".\n // root: \"...\",\n\n // Token of this backend.\n //\n // This [...] }, { "binding": "java", "language": "java", "minimal": "import java.util.HashMap;\nimport java.util.Map;\nimport org.apache.opendal.Operator;\n\nMap<String, String> conf = new HashMap<>();\nOperator op = Operator.of(\"hf\", conf);", - "full": "import java.util.HashMap;\nimport java.util.Map;\nimport org.apache.opendal.Operator;\n\nMap<String, String> conf = new HashMap<>();\n// Repo type of this backend. Required.\n// conf.put(\"repo_type\", \"...\");\n\n// Repo id of this backend.\n//\n// This is required.\n// conf.put(\"repo_id\", \"...\");\n\n// Revision of this backend.\n//\n// Default is main.\n// conf.put(\"revision\", \"...\");\n\n// Root of this backend. Can be \"/path/to/dir\".\n//\n// Default is \" [...] + "full": "import java.util.HashMap;\nimport java.util.Map;\nimport org.apache.opendal.Operator;\n\nMap<String, String> conf = new HashMap<>();\n// Repo type of this backend. Required.\n// conf.put(\"repo_type\", \"...\");\n\n// Repo id of this backend.\n//\n// This is required.\n// conf.put(\"repo_id\", \"...\");\n\n// Revision of this backend.\n//\n// Default is main.\n// conf.put(\"revision\", \"...\");\n\n// Root of this backend. Can be \"/path/to/dir\".\n//\n// Default is \" [...] } ] },
