Sample
public struct Sample
Members (1)
run
public func run()
changelogkit static export (read-only): 437 symbols from 1 sources.
Supported languages: Swift、JavaScript/TypeScript、Python、C/C++、Kotlin、Java、Go、Rust、C#、Ruby、Dart
public struct Sample
public func run()
def _git(root, *args)
No adjacent doc comment
def _read_stamp(target)
No adjacent doc comment
class BuildInfoHook(BuildHookInterface)
No adjacent doc comment
def initialize(self, version, build_data)
No adjacent doc comment
def _pyproject_version()
No adjacent doc comment
def _installed_version()
No adjacent doc comment
def _esc(value)
No adjacent doc comment
def title(doc)
No adjacent doc comment
def href(doc, base="")
No adjacent doc comment
def nav_html(docs, base="")
No adjacent doc comment
def static_docs(docs)
No adjacent doc comment
def resolve_asset(doc, rel)
No adjacent doc comment
def assert_export_safe(cfg, out)
No adjacent doc comment
def copy_provider(doc, out)
No adjacent doc comment
def _search_roots()
No adjacent doc comment
def path(name)
No adjacent doc comment
def read(name)
No adjacent doc comment
def mime(name)
No adjacent doc comment
def render(name, **subs)
No adjacent doc comment
function esc(s)
No adjacent doc comment
function mdInline(s, resolve)
No adjacent doc comment
function featureResolve()
No adjacent doc comment
function kindOf(name)
No adjacent doc comment
function links(items)
No adjacent doc comment
function saveState()
No adjacent doc comment
function loadState()
No adjacent doc comment
function commitCard(repo, c)
No adjacent doc comment
function diffLineClass(l)
No adjacent doc comment
function renderDiff(j)
No adjacent doc comment
async function loadDiff(box, params)
No adjacent doc comment
function localeText(map, fallback)
No adjacent doc comment
function groupLabel(group)
No adjacent doc comment
function renderFilters()
No adjacent doc comment
function symbolCard(r, nested)
No adjacent doc comment
function docGroupHtml(r, count)
No adjacent doc comment
function warningText(w)
No adjacent doc comment
function docWarningsHtml(list)
No adjacent doc comment
function rowHtml(r)
No adjacent doc comment
function lockedHtml()
No adjacent doc comment
function measureBars()
No adjacent doc comment
function render()
No adjacent doc comment
function appendChunk()
No adjacent doc comment
function updateStatus()
No adjacent doc comment
async function load()
No adjacent doc comment
function highlight(line)
No adjacent doc comment
function fromHash()
No adjacent doc comment
function go(line, push)
No adjacent doc comment
function setMode(mode)
No adjacent doc comment
function profileOf(lang)
No adjacent doc comment
function langFromPath(path)
No adjacent doc comment
function scan(line, state, prof)
No adjacent doc comment
function swift(line, state)
No adjacent doc comment
function code(line, state, lang)
No adjacent doc comment
function markdownLine(line)
No adjacent doc comment
function block(text, lang)
No adjacent doc comment
function match(tag)
No adjacent doc comment
function pick()
No adjacent doc comment
function dict(name)
No adjacent doc comment
function label(name)
No adjacent doc comment
function apply()
No adjacent doc comment
function buildMenu()
No adjacent doc comment
function markMenu()
No adjacent doc comment
function closeMenu()
No adjacent doc comment
function toggleMenu()
No adjacent doc comment
function esc(s)
No adjacent doc comment
async function postJSON(url, body)
No adjacent doc comment
function indentSelection(ta, outdent)
No adjacent doc comment
async function load()
No adjacent doc comment
function renderView(e)
No adjacent doc comment
function renderEdit(e)
No adjacent doc comment
async function show(i)
No adjacent doc comment
function makeRefRow(label, url)
No adjacent doc comment
function clearRefs()
No adjacent doc comment
function collectRefs()
No adjacent doc comment
function inline(text, resolve)
No adjacent doc comment
function splitRow(line)
No adjacent doc comment
function table(header, rows, resolve)
No adjacent doc comment
function listHtml(items, resolve)
No adjacent doc comment
function headingId(text, ids)
No adjacent doc comment
function quote(lines, resolve, ids)
No adjacent doc comment
function render(text, resolve, ids)
No adjacent doc comment
function T(key, fallback)
No adjacent doc comment
function parseTags(lines)
No adjacent doc comment
function splitType(text)
No adjacent doc comment
function parseParam(text)
No adjacent doc comment
function renderDoc(text, resolveHref)
No adjacent doc comment
function preferred()
No adjacent doc comment
function apply(t)
No adjacent doc comment
function localizeTimes(root)
No adjacent doc comment
def _first_add(root, relpath, needle)
No adjacent doc comment
def _stamp_from_decl(text)
No adjacent doc comment
def _strip_subs(lines)
No adjacent doc comment
def _entry_heads(lines)
No adjacent doc comment
def _sort_key(line)
No adjacent doc comment
def sort_lines(lines)
No adjacent doc comment
def backfill(apply=False, strip_number=False, sort=False)
No adjacent doc comment
def _git_head(path)
No adjacent doc comment
def _from_direct_url()
No adjacent doc comment
def commit()
No adjacent doc comment
def version()
No adjacent doc comment
def origin_slug()
No adjacent doc comment
def version_string()
No adjacent doc comment
def snapshot()
No adjacent doc comment
def dumps()
No adjacent doc comment
def render()
No adjacent doc comment
def _prescan_locale(argv)
No adjacent doc comment
def cmd_workflows(args)
No adjacent doc comment
def cmd_capabilities(args)
No adjacent doc comment
def cmd_add(args)
No adjacent doc comment
def _matches(e, args)
No adjacent doc comment
def cmd_backfill(args)
No adjacent doc comment
def cmd_sort(args)
No adjacent doc comment
def cmd_list(args)
No adjacent doc comment
def cmd_show(args)
No adjacent doc comment
def cmd_languages(args)
No adjacent doc comment
def cmd_locales(args)
No adjacent doc comment
def _symbol_matches(symbol, query, lang, kind, repo)
No adjacent doc comment
def cmd_docs(args)
No adjacent doc comment
def cmd_docs_init(args)
No adjacent doc comment
def cmd_symbols(args)
No adjacent doc comment
def main(argv=None)
No adjacent doc comment
def _finish(title, body_lines)
No adjacent doc comment
def parse(text)
No adjacent doc comment
def load()
No adjacent doc comment
def html_block(data, default_title="Community")
No adjacent doc comment
def template()
No adjacent doc comment
def write_template()
No adjacent doc comment
class Source
No adjacent doc comment
class DocGroup
No adjacent doc comment
class DocEntry
No adjacent doc comment
class ApiDoc
No adjacent doc comment
class Config
No adjacent doc comment
def _find_root(start)
No adjacent doc comment
def _default_config(root)
No adjacent doc comment
def _resolve(root, value)
No adjacent doc comment
def _find_named(directory, name)
No adjacent doc comment
def _auto_workflows(root)
No adjacent doc comment
def _auto_todo(root)
No adjacent doc comment
def _text(value)
No adjacent doc comment
def _doc_groups(raw)
No adjacent doc comment
def _doc_entries(raw)
No adjacent doc comment
def _api_docs(root, raw)
No adjacent doc comment
def _from_table(root, table)
No adjacent doc comment
def load(start=None, use_cache=True)
No adjacent doc comment
def reset()
No adjacent doc comment
def normalize_color(value)
No adjacent doc comment
def normalize(path)
No adjacent doc comment
def _has_glob(pattern)
No adjacent doc comment
def _entry_for(name, entries)
No adjacent doc comment
def _locale_map(value)
No adjacent doc comment
def _localized(value, fallback="")
No adjacent doc comment
def _default_title(name)
No adjacent doc comment
def _folder(name)
No adjacent doc comment
def _group_meta(group)
No adjacent doc comment
def _auto_meta(category)
No adjacent doc comment
def _auto_group(name)
No adjacent doc comment
def _resolve_groups(cfg, warnings)
No adjacent doc comment
def resolve(documents, cfg=None)
No adjacent doc comment
def warning_text(warning)
No adjacent doc comment
def fmt(key, *args)
No adjacent doc comment
def suggestion(documents)
No adjacent doc comment
def _toml_string(text)
No adjacent doc comment
def toml_suggestion(documents)
No adjacent doc comment
def _esc(text)
No adjacent doc comment
def _doc_stem(name)
No adjacent doc comment
def _doc_rel(repo, name)
No adjacent doc comment
def _doc_url(repo, name)
No adjacent doc comment
def _timezone_for(name)
No adjacent doc comment
def _stamp_text(when)
No adjacent doc comment
def _build_instant()
No adjacent doc comment
def _build_stamp(timezone_name="local")
No adjacent doc comment
def _site_base(rel)
No adjacent doc comment
def _group_anchor(group_id)
No adjacent doc comment
def _commit_rel(repo, commit_hash)
No adjacent doc comment
def _diff_class(line)
No adjacent doc comment
def _diff_html(text)
No adjacent doc comment
def _origin_slug()
No adjacent doc comment
def _github_base(branch)
No adjacent doc comment
def _file_link(path, blob_base)
No adjacent doc comment
def _md(raw)
No adjacent doc comment
def _render_history(cfg)
No adjacent doc comment
def _symbol_card(sym, blob_base, nested)
No adjacent doc comment
def _render_symbols(symbols, blob_base)
No adjacent doc comment
def _render_doc_warnings(warnings)
No adjacent doc comment
def _render_documents(documents, groups, base="../")
No adjacent doc comment
def _render_repo_list(repos)
No adjacent doc comment
def _write_commits(out, repos, footer, todo_link=None, api_nav=None)
No adjacent doc comment
def _render_overview(data)
No adjacent doc comment
def _render_symbols_page(data, blob_base)
No adjacent doc comment
def _write_docs(out, documents, footer, doc_pages_json, blob_base_json, todo_link=None, api_nav=None)
No adjacent doc comment
def _write_about( out, cfg, data, footer, slug, community_html, doc_pages_json, blob_base_json, community_path, todo_link_html="", api_nav_html="", )
No adjacent doc comment
def export(out_dir, branch="main")
No adjacent doc comment
def todo_link(base)
No adjacent doc comment
def api_nav(base)
No adjacent doc comment
def workflows_link(base)
No adjacent doc comment
def regex(pattern)
No adjacent doc comment
def matches(pattern, path)
No adjacent doc comment
def _history()
No adjacent doc comment
def strip_comments(text)
def parse_entries(text=None)
No adjacent doc comment
def read_history()
No adjacent doc comment
def _heading_indices(lines)
No adjacent doc comment
def _heading_text(text)
No adjacent doc comment
def _summary_body(text)
No adjacent doc comment
def _normalize_body(text)
No adjacent doc comment
def _norm_refs(refs)
No adjacent doc comment
def build_block( date_str, title, type_, file_, problem="", root_cause="", changes=None, refs="", time_str="", change_detail="", )
No adjacent doc comment
def _ensure_h1(lines)
No adjacent doc comment
def _write(lines)
No adjacent doc comment
def insert_block(block)
No adjacent doc comment
def _entry_range(heads, lines, i)
No adjacent doc comment
def update_entry(i, raw)
No adjacent doc comment
def delete_entry(i)
No adjacent doc comment
def git_changed_files()
def now_parts()
def today_str()
No adjacent doc comment
def _catalog(locale)
No adjacent doc comment
def _system_locale()
No adjacent doc comment
def resolve_locale()
No adjacent doc comment
def set_language(locale)
No adjacent doc comment
def available()
No adjacent doc comment
def current()
No adjacent doc comment
def t(key, **fmt)
No adjacent doc comment
def _merged()
No adjacent doc comment
def all_catalogs()
No adjacent doc comment
def _embed(data)
No adjacent doc comment
def subs()
No adjacent doc comment
def js_dict()
No adjacent doc comment
def roots()
No adjacent doc comment
def default_repo()
No adjacent doc comment
def rel_path(path)
No adjacent doc comment
def git(root, *args)
No adjacent doc comment
def files(root)
No adjacent doc comment
def wanted(rel)
No adjacent doc comment
def safe_file(repo, name)
No adjacent doc comment
def validate()
No adjacent doc comment
def _parse_commits(raw)
No adjacent doc comment
def _safe_pathspec(name)
No adjacent doc comment
def diff(repo, rev=None, path=None, worktree=False)
No adjacent doc comment
def _locked_packages()
No adjacent doc comment
def _nest(symbols, lines)
No adjacent doc comment
def iter_symbols(symbols)
No adjacent doc comment
def _module_key(name)
No adjacent doc comment
def _dedupe_declarations(symbols)
No adjacent doc comment
def _document_entry(repo, root, name)
No adjacent doc comment
def documents()
No adjacent doc comment
def snapshot()
No adjacent doc comment
def todo_link()
No adjacent doc comment
def api_nav()
No adjacent doc comment
def workflows_link()
No adjacent doc comment
def workflows_page()
No adjacent doc comment
def _file_page(repo, name, line)
No adjacent doc comment
def route(path, query)
No adjacent doc comment
def scan_symbols(text, repo, name)
No adjacent doc comment
def link(repo, path, line=1)
No adjacent doc comment
def collect_signature(lines, start)
No adjacent doc comment
def make_symbol(kind, symbol_name, signature, repo, fname, line, doc)
No adjacent doc comment
def clean_block_doc(line)
No adjacent doc comment
def collect_block_comment(lines, index)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def _type_kind(keyword)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
def _decl_keyword(line)
No adjacent doc comment
def _symbol_name(keyword, signature)
No adjacent doc comment
def scan(text, repo, name)
No adjacent doc comment
class Handler(BaseHTTPRequestHandler)
No adjacent doc comment
def log_message(self, *a)
No adjacent doc comment
def _page(self, name)
No adjacent doc comment
def _send(self, code, body, ctype="application/json; charset=utf-8")
No adjacent doc comment
def _serve_asset(self, name)
No adjacent doc comment
def _serve_api_doc(self, path)
No adjacent doc comment
def do_GET(self)
def do_POST(self)
class _Server(ThreadingHTTPServer)
No adjacent doc comment
def writable_for(host, allow_write=None)
No adjacent doc comment
def _lan_addresses()
No adjacent doc comment
def add(value)
No adjacent doc comment
def serve(port=8710, open_browser=True, host="127.0.0.1", allow_write=None)
No adjacent doc comment
def version(path)
No adjacent doc comment
def parse(path)
No adjacent doc comment
def parse_text(text)
No adjacent doc comment
def render(data)
No adjacent doc comment
def _esc(value)
No adjacent doc comment
def _auth_mode()
No adjacent doc comment
def _http_json(endpoint, token)
No adjacent doc comment
def _gh_json(endpoint)
No adjacent doc comment
def _fetch_action_yml(repo, action_path, ref)
No adjacent doc comment
def _runtime(repo, action_path, ref)
No adjacent doc comment
def clear_cache()
No adjacent doc comment
def classify(runtime, kind="action")
No adjacent doc comment
def _parse_uses(uses)
No adjacent doc comment
def scan(cfg)
No adjacent doc comment
def enrich(cfg, data)
No adjacent doc comment
def report(cfg)
No adjacent doc comment
def _status_text(status)
No adjacent doc comment
def _source_link(action)
No adjacent doc comment
def render(data)
No adjacent doc comment
def _git(root, *args)
No adjacent doc comment
class TempRepo
No adjacent doc comment
def __enter__(self)
No adjacent doc comment
def __exit__(self, *exc)
No adjacent doc comment
class CapabilitiesTests(unittest.TestCase)
No adjacent doc comment
def test_snapshot_lists_recent_features(self)
No adjacent doc comment
def test_cli_capabilities_json(self)
No adjacent doc comment
class ServerTests(unittest.TestCase)
No adjacent doc comment
def test_writable_defaults_to_loopback_only(self)
No adjacent doc comment
def test_writable_can_be_enabled_for_lan(self)
No adjacent doc comment
class ConfigTests(unittest.TestCase)
No adjacent doc comment
def test_loads_table(self)
No adjacent doc comment
def test_timezone_option(self)
No adjacent doc comment
def test_build_stamp_includes_utc_offset(self)
No adjacent doc comment
def test_api_docs_config_and_order(self)
No adjacent doc comment
def test_api_docs_invalid_entries_are_warnings(self)
No adjacent doc comment
def test_api_nav_and_traversal(self)
No adjacent doc comment
def test_static_export_api_mount_and_external_link(self)
No adjacent doc comment
def test_static_export_rejects_api_output_inside_site(self)
No adjacent doc comment
def test_workflows_auto_and_disable(self)
No adjacent doc comment
def test_todo_path(self)
No adjacent doc comment
def test_project_override(self)
No adjacent doc comment
def test_doc_group_accepts_single_path_string(self)
No adjacent doc comment
def test_doc_group_accepts_localized_title(self)
No adjacent doc comment
def test_parses_docs_section(self)
No adjacent doc comment
class WorkflowTests(unittest.TestCase)
No adjacent doc comment
def test_scan_and_runtime_enrichment(self)
No adjacent doc comment
def test_workflows_cli_json(self)
No adjacent doc comment
def test_workflows_page_and_export(self)
No adjacent doc comment
class DevToolTests(unittest.TestCase)
No adjacent doc comment
def test_build_env_prepends_source(self)
No adjacent doc comment
def test_help_and_forwarded_help(self)
No adjacent doc comment
def test_find_config_walks_up(self)
No adjacent doc comment
class TodoTests(unittest.TestCase)
No adjacent doc comment
def test_parse_and_render(self)
No adjacent doc comment
def test_missing_file_is_empty(self)
No adjacent doc comment
class VersionCheckTests(unittest.TestCase)
No adjacent doc comment
def test_version_and_tag(self)
No adjacent doc comment
def run(*args)
No adjacent doc comment
class DocsTests(unittest.TestCase)
No adjacent doc comment
def cfg(groups=(), entries=(), unlisted="other", auto=True)
No adjacent doc comment
def test_groups_and_entry_override(self)
No adjacent doc comment
def test_overlap_is_warning_not_guess(self)
No adjacent doc comment
def test_bad_color_falls_back(self)
No adjacent doc comment
def test_color_aliases(self)
No adjacent doc comment
def test_hidden_unlisted(self)
No adjacent doc comment
def test_folder_unlisted(self)
No adjacent doc comment
def test_auto_fallback_groups(self)
No adjacent doc comment
def test_config_overrides_auto(self)
No adjacent doc comment
def test_auto_disabled(self)
No adjacent doc comment
def test_auto_uses_deepest_folder(self)
No adjacent doc comment
def test_localized_group_and_entry(self)
No adjacent doc comment
def test_unmatched_pattern_warning(self)
No adjacent doc comment
def test_all_patterns_count_as_used(self)
No adjacent doc comment
def test_suggestion_builds_folder_patterns(self)
No adjacent doc comment
def test_docs_cli_check_and_init(self)
No adjacent doc comment
def test_docs_cli_returns_error_on_overlap(self)
No adjacent doc comment
def test_snapshot_classifies_documents(self)
No adjacent doc comment
class ExportTests(unittest.TestCase)
No adjacent doc comment
def test_doc_url_is_stable_and_encoded(self)
No adjacent doc comment
def test_static_footer_has_time_markup(self)
No adjacent doc comment
def test_static_footer_respects_fixed_timezone(self)
No adjacent doc comment
def test_static_todo_page(self)
No adjacent doc comment
def test_empty_todo_shows_link_and_hint(self)
No adjacent doc comment
def test_static_pages_use_stable_urls_and_split_repos(self)
No adjacent doc comment
class MultiSourceExportTests(unittest.TestCase)
No adjacent doc comment
def test_same_doc_name_gets_source_specific_pages(self)
No adjacent doc comment
class HistoryTests(unittest.TestCase)
No adjacent doc comment
def test_parse(self)
No adjacent doc comment
def test_insert_prepends(self)
No adjacent doc comment
def test_insert_block_with_body_subheading_stays_one_entry(self)
No adjacent doc comment
def test_sort_lines_orders_by_time(self)
No adjacent doc comment
def test_sort_ignores_commented_and_fenced_headings(self)
No adjacent doc comment
def test_backfill_sort_apply_writes_order(self)
No adjacent doc comment
def test_sort_cli(self)
No adjacent doc comment
def test_build_block_change_detail(self)
No adjacent doc comment
def test_build_block_demotes_body_headings(self)
No adjacent doc comment
def test_parse_entries_ignores_body_subheadings(self)
No adjacent doc comment
def test_parse_entries_keeps_undated_legacy_file(self)
No adjacent doc comment
def test_build_block_strips_md026_punctuation(self)
No adjacent doc comment
def test_heading_text_keeps_non_md026_marks(self)
No adjacent doc comment
def test_add_cli_strips_heading_punctuation(self)
No adjacent doc comment
def test_add_cli_body(self)
No adjacent doc comment
def test_git_changed_files(self)
No adjacent doc comment
def test_multi_refs_multiline(self)
No adjacent doc comment
def test_history_starts_with_h1(self)
No adjacent doc comment
def test_backfill_dates_from_git(self)
No adjacent doc comment
def test_backfill_strip_number(self)
No adjacent doc comment
def test_backfill_removes_declared_time_without_double_blank(self)
No adjacent doc comment
def test_missing_history_is_graceful(self)
No adjacent doc comment
class IndexTests(unittest.TestCase)
No adjacent doc comment
def test_roots_and_symbols(self)
No adjacent doc comment
def test_dedupe_declarations_prefers_dts(self)
No adjacent doc comment
def test_snapshot_prefers_dts_over_js(self)
No adjacent doc comment
def test_safe_file_missing_explains_path(self)
No adjacent doc comment
def test_bad_feature_keeps_other_index_data(self)
No adjacent doc comment
def test_glob_re(self)
No adjacent doc comment
def test_scanners(self)
No adjacent doc comment
def test_validate_absent_features(self)
No adjacent doc comment
def test_rel_path(self)
No adjacent doc comment
def test_snapshot_contexts(self)
No adjacent doc comment
def test_routes(self)
No adjacent doc comment
def sym(file, name, kind)
No adjacent doc comment
class CommunityTests(unittest.TestCase)
No adjacent doc comment
def test_parse(self)
No adjacent doc comment
def test_action_link_is_standalone_line_only(self)
No adjacent doc comment
def test_missing_file_hidden(self)
No adjacent doc comment
def test_html_block_escapes(self)
No adjacent doc comment
def test_write_template(self)
No adjacent doc comment
def test_template_is_markdownlint_clean(self)
No adjacent doc comment
class AssetTests(unittest.TestCase)
No adjacent doc comment
def test_default_asset(self)
No adjacent doc comment
def test_override_wins(self)
No adjacent doc comment
class VersionTests(unittest.TestCase)
No adjacent doc comment
def test_source_version_matches_pyproject(self)
No adjacent doc comment
class I18nTests(unittest.TestCase)
No adjacent doc comment
def test_lookup_and_fallback(self)
No adjacent doc comment
def test_available_locales(self)
No adjacent doc comment
class I18nKeyTests(unittest.TestCase)
No adjacent doc comment
def setUpClass(cls)
No adjacent doc comment
def test_reference_defines_used_keys(self)
No adjacent doc comment
def test_locales_not_drifted(self)
No adjacent doc comment
def test_auto_doc_group_titles(self)
No adjacent doc comment
def package_version()
No adjacent doc comment
def fallback_version()
No adjacent doc comment
def main(argv=None)
No adjacent doc comment
def find_config(root)
No adjacent doc comment
def build_env(base=None)
No adjacent doc comment
def _display(command)
No adjacent doc comment
def main(argv=None)
No adjacent doc comment