Skip to content

Commit

Permalink
Revert "Refactor proposals into a separate Antora component (#2358)"
Browse files Browse the repository at this point in the history
This reverts commit 046a1f3.
  • Loading branch information
gpx1000 authored May 2, 2024
1 parent 046a1f3 commit c5fc7a9
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 106 deletions.
1 change: 0 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ LICENSE.adoc Summary of licenses used by files in the repository
ChangeLog.adoc Change log summary for each public Vulkan spec update
ChangeLogSC.adoc Change log summary for each public Vulkan SC spec update
Makefile, make* Makefile and helper build scripts (see BUILD.adoc)
antora/ Staging area for the docs.vulkan.org Antora 'proposals' and 'spec' modules
appendices/ Specification appendices
chapters/ Specification chapters
proposals/ Design documents for extensions
Expand Down
8 changes: 0 additions & 8 deletions antora/.gitignore

This file was deleted.

36 changes: 18 additions & 18 deletions antora/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ RMRF = rm -rf

JSAPIMAP = ./gen/apimap.cjs
XREFMAPS = $(PYXREFMAP) $(JSXREFMAP)
PYXREFMAP = antora/spec/xrefMap.py
JSXREFMAP = antora/spec/xrefMap.cjs
JSPAGEMAP = antora/spec/modules/ROOT/partials/gen/pageMap.cjs
PYXREFMAP = antora/xrefMap.py
JSXREFMAP = antora/xrefMap.cjs
JSPAGEMAP = antora/modules/ROOT/partials/gen/pageMap.cjs

setup: setup_spec setup_proposals

# Rewrite Vulkan spec sources and images into the spec/module/ROOT
# Rewrite Vulkan spec sources and images into the module directory, ROOT
# component
# Page headers are added to pull in required attributes
# Also creates apimap.cjs, pageMap.cjs, and xrefMap.cjs for use by the
Expand All @@ -37,8 +37,8 @@ xrefmaps:
spec_pages:
scripts/antora-prep.py \
-root . \
-component $(shell realpath antora/spec/modules/ROOT) \
-xrefpath antora/spec \
-component $(shell realpath antora/modules/ROOT) \
-xrefpath antora \
-pageHeaders antora/pageHeaders-spec.adoc \
-pagemappath $(JSPAGEMAP) \
./config/attribs.adoc \
Expand All @@ -48,12 +48,12 @@ spec_pages:
`find ./gen ./chapters ./appendices -name '[A-Za-z]*.adoc' | grep -v /vulkanscdeviations.adoc` \
$(JSAPIMAP)

# Rewrite proposals into the proposals/module/proposals component.
# Rewrite proposals into the module directory, 'proposals' component
# No additional pageHeaders required.
setup_proposals: proposal_nav
scripts/antora-prep.py \
-root . \
-component $(shell realpath antora/proposals/modules/proposals) \
-component $(shell realpath antora/modules/proposals) \
-xrefpath antora \
./images/tile_image.svg \
`find ./proposals -name '[A-Za-z]*.adoc'`
Expand All @@ -65,22 +65,22 @@ setup_proposals: proposal_nav
proposal_nav:
scripts/antora-nav-proposals.py \
-root . \
-component $(shell realpath antora/proposals/modules/proposals) \
-component $(shell realpath antora/modules/proposals) \
-roadmappath proposals/Roadmap.adoc \
-templatepath proposals/template.adoc \
`find ./proposals -name 'VK_*.adoc'`

# Files generated by 'setup' target
ANTORA_GENERATED = \
antora/spec/modules/ROOT/images \
antora/spec/modules/ROOT/pages/appendices \
antora/spec/modules/ROOT/pages/chapters \
antora/spec/modules/ROOT/pages/gen \
antora/spec/modules/ROOT/partials \
antora/proposals/modules/proposals/pages/proposals \
antora/proposals/modules/proposals/partials \
antora/proposals/modules/proposals/images \
antora/proposals/modules/proposals/nav.adoc \
antora/modules/ROOT/images \
antora/modules/ROOT/pages/appendices \
antora/modules/ROOT/pages/chapters \
antora/modules/ROOT/pages/gen \
antora/modules/ROOT/partials \
antora/modules/proposals/pages/proposals \
antora/modules/proposals/partials \
antora/modules/proposals/images \
antora/modules/proposals/nav.adoc \
$(JSXREFMAP) \
$(PYXREFMAP)

Expand Down
5 changes: 3 additions & 2 deletions antora/spec/antora.yml → antora/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

name: spec
title: Vulkan Specification
title: Vulkan Specification and Proposals
version: latest
# stem (latexmath) support is provided by the @djencks/asciidoctor-mathjax
# extension, loaded in the playbook.
Expand All @@ -14,9 +14,10 @@ asciidoc:
appendices: partial$appendices
generated: partial$gen
images: image$
# Not supported for SVG yet - see https://gitlab.com/antora/antora/-/issues/1001
# Not supported for SVG yet - see https://gitlab.com/antora/antora/-/issues/536
# imageopts: inline
imageopts: ''
refprefix: ''
nav:
- modules/ROOT/nav.adoc
- modules/proposals/nav.adoc
File renamed without changes.
44 changes: 44 additions & 0 deletions antora/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2022-2024 The Khronos Group Inc.
// SPDX-License-Identifier: CC-BY-4.0

= Vulkan Documentation

include::{config}/attribs.adoc[]
include::{generated}/specattribs.adoc[]

== About

link:https://docs.vulkan.org/[This site] gathers together several key
Vulkan documents including specifications, guides, tutorials and samples
into a single site allowing for easy cross-searching and cross-linking
across documents to help navigate quickly to the information you need
for developing Vulkan-based applications.

For more details about and resources for using the Vulkan graphics API,
see the Vulkan developer website at https://vulkan.org .

This build of the site includes the Vulkan {SPECREVISION} API specification
{APITITLE}, generated on {SPECDATE} {SPECREMARK}.

== Navigation

The left sidebar links to pages in the current spec.
Proposals are available at the bottom of the sidebar links for the spec.

The right sidebar is sections within the current page.

The bottom-left button switches between the various documentation modules and specs.

The top contains a text searchbar.
It will suggest matches to search terms found in all the modules of the
site.

== Site Information

link:https://docs.vulkan.org/[This site] is generated using the
link:https://docs.antora.org/[Antora] static site generator.

If you need to report a problem or build the site yourself, start with
the
link:https://github.com/KhronosGroup/Vulkan-Site/[Vulkan-Site]
repository on GitHub.
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions antora/proposals/antora.yml

This file was deleted.

52 changes: 0 additions & 52 deletions antora/spec/modules/ROOT/pages/index.adoc

This file was deleted.

4 changes: 1 addition & 3 deletions config/attribs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ endif::VKSC_VERSION_1_0[]


// Link/xref prefix for the location of proposal documents.
// The Antora resource ID must change if the component or module layout of
// the proposals changes.
:specRepositoryURL: https://github.com/KhronosGroup/Vulkan-Docs/tree/main/
ifdef::site-gen-antora[:proposalRefPath: xref:proposals:proposals:]
ifdef::site-gen-antora[:proposalRefPath: xref:proposals:]
ifndef::site-gen-antora[:proposalRefPath: link:{specRepositoryURL}]

// URL prefix for the GLSL extensions registry
Expand Down

0 comments on commit c5fc7a9

Please sign in to comment.