readPublished method
Reads HTML and its dependency record from the same active version.
Implementation
Future<PublishedHtmlArtifact?> readPublished(String path) async {
final version = await activeVersion;
final dir = version == null ? root : _versionDir(version);
final normPath = _normalizePath(path);
final dependency = await _findRouteDependency(dir, normPath);
if (dependency == null) return null;
final html = version == null
? await _readLegacy(path)
: await readVersion(version, path);
if (html == null) return null;
return PublishedHtmlArtifact(
version: version,
html: html,
dependency: dependency,
);
}