mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Use owner-based platform declaration // Resolve #4962
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 7159a21142...891cc03ad5
2
examples
2
examples
Submodule examples updated: 9b39344183...2585734bbf
@ -413,6 +413,7 @@ Packages
|
|||||||
|
|
||||||
|
|
||||||
def generate_platform(pkg, rst_dir):
|
def generate_platform(pkg, rst_dir):
|
||||||
|
owner = pkg.metadata.spec.owner
|
||||||
name = pkg.metadata.name
|
name = pkg.metadata.name
|
||||||
print("Processing platform: %s" % name)
|
print("Processing platform: %s" % name)
|
||||||
|
|
||||||
@ -428,9 +429,9 @@ def generate_platform(pkg, rst_dir):
|
|||||||
p = PlatformFactory.new(name)
|
p = PlatformFactory.new(name)
|
||||||
assert p.repository_url.endswith(".git")
|
assert p.repository_url.endswith(".git")
|
||||||
github_url = p.repository_url[:-4]
|
github_url = p.repository_url[:-4]
|
||||||
registry_url = reg_package_url("platform", pkg.metadata.spec.owner, name)
|
registry_url = reg_package_url("platform", owner, name)
|
||||||
|
|
||||||
lines.append(".. _platform_%s:" % p.name)
|
lines.append(".. _platform_%s:" % name)
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
lines.append(p.title)
|
lines.append(p.title)
|
||||||
@ -439,7 +440,7 @@ def generate_platform(pkg, rst_dir):
|
|||||||
lines.append(":Registry:")
|
lines.append(":Registry:")
|
||||||
lines.append(" `%s <%s>`__" % (registry_url, registry_url))
|
lines.append(" `%s <%s>`__" % (registry_url, registry_url))
|
||||||
lines.append(":Configuration:")
|
lines.append(":Configuration:")
|
||||||
lines.append(" :ref:`projectconf_env_platform` = ``%s``" % p.name)
|
lines.append(" :ref:`projectconf_env_platform` = ``%s/%s``" % (owner, name))
|
||||||
lines.append("")
|
lines.append("")
|
||||||
lines.append(p.description)
|
lines.append(p.description)
|
||||||
lines.append(
|
lines.append(
|
||||||
|
Reference in New Issue
Block a user