Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,24 @@ jobs:
- name: Install required binaries
run: |
./install_bins.sh

- name: Checkout BCR submodule
run: |
git submodule update --init -- data/bazel-central-registry

- name: Checkout latest commit of BCR submodule
if: ${{ !inputs.bcrCommitHash }}
working-directory: data/bazel-central-registry
run: |
git checkout origin/main

- name: Checkout specific commit of BCR submodule
if: ${{ inputs.bcrCommitHash }}
working-directory: data/bazel-central-registry
run: |
git checkout ${{ inputs.bcrCommitHash }}

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
pnpm install --frozen-lockfile
pnpm run build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: out
folder: out
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "data/bazel-central-registry"]
path = data/bazel-central-registry
url = https://github.com/bazelbuild/bazel-central-registry.git
url = https://github.com/eclipse-score/bazel_registry.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bazel Central Registry Web UI

This repository provides a web UI for the [Bazel Central Registry (BCR)](https://github.com/bazelbuild/bazel-central-registry).
This repository provides a web UI for the [Bazel Central Registry (BCR)](https://github.com/eclipse-score/bazel_registry).
It entirely consists of statically rendered pages, which are updated as soon as a new commit is pushed to the BCR.

## Contributing
Expand Down
7 changes: 3 additions & 4 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import React from 'react'
interface FooterProps {}

export const REPORT_LINK =
'https://github.com/bazelbuild/bazel-central-registry/tree/main/docs#requesting-to-take-down-a-module'
export const BCR_UI_REPO_LINK = 'https://github.com/bazel-contrib/bcr-ui'
'https://github.com/eclipse-score/bazel_registry/issues'
export const BCR_UI_REPO_LINK = 'https://github.com/eclipse-score/bazel_registry_ui'

export const Footer: React.FC<FooterProps> = () => {
return (
<footer className="flex flex-col items-center justify-center gap-2 h-18 mt-4 bottom-2">
<div className="text-center">
The Bazel Central Registry is maintained by the Bazel team and the Bazel
Rules authors SIG.
The Eclipse S-Core Bazel Registry is maintained by the Eclipse S-Core team.
</div>
<div className="text-center">
To report an issue with one of the modules, see the{' '}
Expand Down
22 changes: 2 additions & 20 deletions components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import React, { useState } from 'react'

interface HeaderProps {}

Expand All @@ -27,7 +27,7 @@ export const Header: React.FC<HeaderProps> = () => {
<div className="flex flex-1 items-center">
<Link href="/" className="flex items-center cursor-pointer">
<span className="self-center text-xl font-semibold whitespace-nowrap text-white cursor-pointer">
Bazel Central Registry
Eclipse S-Core Bazel Registry
</span>
</Link>
</div>
Expand Down Expand Up @@ -126,24 +126,6 @@ export const Header: React.FC<HeaderProps> = () => {
/>
</form>
</div>
<ul className="flex flex-col mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium">
<li>
<a
href={USER_GUIDE_LINK}
className="block py-2 pr-4 pl-3 text-white border-b border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-gray-300 md:p-0"
>
Bzlmod User Guide
</a>
</li>
<li>
<a
href={CONTRIBUTE_CTA_LINK}
className="block py-2 pr-4 pl-3 text-white border-b border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-gray-300 md:p-0"
>
Contribute to the BCR
</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion data/bazel-central-registry
7 changes: 3 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
const nextConfig = {
output: 'export',
reactStrictMode: true,
// for hosting under GitHub pages
basePath: '',
// Increase timeout for generating static pages from default 60s to avoid issues like:
// Restarted static page generation for /modules/xxx/y.y.y because it took more than 60 seconds
// 👇 Required for GitHub Pages under /bazel_registry_ui
basePath: '/bazel_registry_ui',
assetPrefix: '/bazel_registry_ui',
staticPageGenerationTimeout: 600,
}

Expand Down
10 changes: 4 additions & 6 deletions pages/all-modules.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import Fuse from 'fuse.js'
import type { NextPage } from 'next'
import { GetStaticProps } from 'next'
import Head from 'next/head'
import { Header } from '../components/Header'
import { Footer } from '../components/Footer'
import React, { useEffect, useState } from 'react'
import { useRouter } from 'next/router'
import { GetStaticProps } from 'next'
import { buildSearchIndex, SearchIndexEntry } from '../data/utils'
import Fuse from 'fuse.js'
import { Header } from '../components/Header'
import { ModuleCard } from '../components/ModuleCard'
import { buildSearchIndex, SearchIndexEntry } from '../data/utils'

interface SearchPageProps {
searchIndex: SearchIndexEntry[]
Expand Down
Loading
Loading