Skip to content

Commit

Permalink
Delete the legacy website code. (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBasem20 authored Aug 22, 2023
1 parent 22d23d2 commit e9e960f
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 1,210 deletions.
22 changes: 0 additions & 22 deletions aiida_registry/make_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import copy
import json
import os
import string
from collections import defaultdict

from aiida_registry.fetch_metadata import fetch_metadata
Expand All @@ -23,30 +21,10 @@
status_no_pip_url_allowed,
)

# Subfolders
OUT_FOLDER = "out"
STATIC_FOLDER = "static"
HTML_FOLDER = (
"plugins" # Name for subfolder where HTMLs for plugins are going to be sitting
)
TEMPLATES_FOLDER = "templates"

# Absolute paths
pwd = os.path.split(os.path.abspath(__file__))[0]
STATIC_FOLDER_ABS = os.path.join(pwd, STATIC_FOLDER)

entrypoints_count = defaultdict(list)
other_entrypoint_names = set()


def get_html_plugin_fname(plugin_name):
valid_characters = set(string.ascii_letters + string.digits + "_-")

simple_string = "".join(c for c in plugin_name if c in valid_characters)

return "{}.html".format(simple_string)


def get_summary_info(entry_points):
"""Get info for plugin detail page.
Expand Down
Empty file removed aiida_registry/mod/__init__.py
Empty file.
50 changes: 0 additions & 50 deletions aiida_registry/mod/templates/base.html

This file was deleted.

86 changes: 0 additions & 86 deletions aiida_registry/mod/templates/main_index.html

This file was deleted.

124 changes: 0 additions & 124 deletions aiida_registry/mod/templates/singlepage.html

This file was deleted.

Loading

0 comments on commit e9e960f

Please sign in to comment.