Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for relative_to (0.06 seconds)

  1. scripts/translation_fixer.py

            yield path
    
    
    def get_all_paths(lang: str):
        res: list[str] = []
        lang_docs_root = Path("docs") / lang / "docs"
        for path in iter_all_lang_paths(lang_docs_root):
            relpath = path.relative_to(lang_docs_root)
            if not str(relpath).startswith(non_translated_sections):
                res.append(str(relpath))
        return res
    
    
    def process_one_page(path: Path) -> bool:
        """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  2. scripts/docs.py

            if rel_path in all_docs_content:
                # Walk up from the file's parent to find the package root
                # (a subdirectory under docs_src/<topic>/)
                parts = py_file.relative_to(docs_src_path).parts
                if len(parts) > 2:
                    # File is inside a sub-package like docs_src/topic/app_xxx/...
                    package_root = docs_src_path / parts[0] / parts[1]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  3. scripts/translate.py

                continue
            yield path
    
    
    def iter_en_paths_to_translate() -> Iterable[Path]:
        en_docs_root = Path("docs/en/docs/")
        for path in iter_all_en_paths():
            relpath = path.relative_to(en_docs_root)
            if not str(relpath).startswith(non_translated_sections):
                yield path
    
    
    @app.command()
    def translate_lang(language: Annotated[str, typer.Option(envvar="LANGUAGE")]) -> None:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  4. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratePackageInfoDataTask.kt

                val packageName = packageLineRegex.find(packageLine)!!.groupValues[1]
                results.add(packageName to packageInfoFile.relativeTo(baseDir).path)
            }
    
            val outputData = results.groupBy(keySelector = { it.first }, valueTransform = { it.second })
            outputFile.get().asFile.writeText(Gson().toJson(outputData))
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  5. api/go1.5.txt

    pkg go/types, func NewTypeName(token.Pos, *Package, string, Type) *TypeName
    pkg go/types, func NewVar(token.Pos, *Package, string, Type) *Var
    pkg go/types, func ObjectString(Object, Qualifier) string
    pkg go/types, func RelativeTo(*Package) Qualifier
    pkg go/types, func SelectionString(*Selection, Qualifier) string
    pkg go/types, func TypeString(Type, Qualifier) string
    pkg go/types, func WriteExpr(*bytes.Buffer, ast.Expr)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Click Count (0)
Back to Top