Skip to content

Commit

Permalink
Remove legacy Slate pages
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 4, 2024
1 parent 4819de1 commit 395002a
Show file tree
Hide file tree
Showing 34 changed files with 2 additions and 17,396 deletions.
11 changes: 1 addition & 10 deletions full/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: OGC Building Blocks full postprocess
description: Generates documentation and output files for OGC building blocks, including Slate templats
description: Generates documentation and output files for OGC building blocks
author: Alejandro Villar
inputs:
register_file:
Expand Down Expand Up @@ -68,12 +68,3 @@ runs:
viewer_path: ${{ inputs.viewer_path }}
sparql_username: ${{ inputs.sparql_username }}
sparql_password: ${{ inputs.sparql_password }}
- name: Generate Slate documentation
continue-on-error: true
run: |
GENDOCS_PATH="$(realpath "${{ inputs.generated_docs_path }}")"
SOURCE_PATH="${GENDOCS_PATH}/slate/"
BUILD_PATH="${GENDOCS_PATH}/slate-build/"
docker run --rm -v "${SOURCE_PATH}:/srv/slate/source" \
-v "${BUILD_PATH}:/srv/slate/build" dockerogc/slate build
shell: bash
12 changes: 1 addition & 11 deletions ogc/bblocks/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,7 @@
provenance_base_uri=args.base_url,
transform_args=uplift_args)

# 3. Copy Slate assets
# Run rsync -rlt /src/ogc/bblocks/slate-assets/ "${GENERATED_DOCS_PATH}/slate/"
print(f"Copying Slate assets to {args.generated_docs_path}/slate", file=sys.stderr)
subprocess.run([
'rsync',
'-rlt',
str(Path(__file__).parent / 'slate-assets') + '/',
f"{args.generated_docs_path}/slate/",
])

# 4. Push to triplestore
# 3. Push to triplestore
if args.enable_sparql:
sparql_gsp = sparql_conf.get('push')
if sparql_gsp:
Expand Down
6 changes: 0 additions & 6 deletions ogc/bblocks/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def __init__(self,
bblocks_register: BuildingBlockRegister | None = None):
self.base_url = base_url
self.output_dir = output_dir if isinstance(output_dir, Path) else Path(output_dir)
self.output_dir.joinpath('slate-build').mkdir(parents=True, exist_ok=True)
self.templates_dir = templates_dir if isinstance(templates_dir, Path) else Path(templates_dir)
self.id_prefix = id_prefix or ''
self.bblocks_register = bblocks_register
Expand Down Expand Up @@ -125,11 +124,6 @@ def generate_doc(self, bblock: BuildingBlock):
'url': doc_url,
}

slate_build_url = f"{self.base_url}{self.output_dir}/slate-build/{bblock.subdirs}/"
all_docs['slate'] = {
'mediatype': 'text/html',
'url': slate_build_url,
}
bblock.metadata['documentation'] = all_docs


Expand Down
Binary file removed ogc/bblocks/slate-assets/fonts/slate.eot
Binary file not shown.
14 changes: 0 additions & 14 deletions ogc/bblocks/slate-assets/fonts/slate.svg

This file was deleted.

Binary file removed ogc/bblocks/slate-assets/fonts/slate.ttf
Binary file not shown.
Binary file removed ogc/bblocks/slate-assets/fonts/slate.woff
Binary file not shown.
Binary file removed ogc/bblocks/slate-assets/fonts/slate.woff2
Binary file not shown.
Binary file removed ogc/bblocks/slate-assets/images/ajax-loader.gif
Binary file not shown.
52 changes: 0 additions & 52 deletions ogc/bblocks/slate-assets/images/external-link-white.svg

This file was deleted.

1 change: 0 additions & 1 deletion ogc/bblocks/slate-assets/images/external-link.svg

This file was deleted.

Binary file removed ogc/bblocks/slate-assets/images/logo.png
Binary file not shown.
Loading

0 comments on commit 395002a

Please sign in to comment.