Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade FDC3 website to docusaurus >=3.5.2 #1371 , transition from MDX v1 to v3 for Docusaurus v3 upgrade #1409

Closed
wants to merge 3 commits into from

Conversation

sivaprasadanakarla
Copy link

This PR contains all the files modified for docusaurus migration.
steps followed

  1. delete yarn.lock

  2. rm -rf node_modules package-lock.json

  3. update package.json
    a) "@docusaurus/core": "~3.5.2",
    b) "@docusaurus/preset-classic": "~3.5.2",
    c) "@docusaurus/theme-mermaid": "~3.5.2",
    d) "react": "^18.2.0",
    e) "react-dom": "^18.2.0",

  4. npm install. – ( notice- found 0 vulnerabilities)

  5. npm run build. ( now build will fail)

  6. npx docusaurus-mdx-checker (iscans and shows compilation issues of .md files)

  7. Fixed all the .md files and 1 js file which is generating .md file

  8. npm run build (success)

  9. npm run start (application is up)

Screenshot 2024-10-29 at 4 56 16 PM Screenshot 2024-10-29 at 5 02 12 PM Screenshot 2024-10-29 at 5 03 56 PM

@sivaprasadanakarla sivaprasadanakarla requested a review from a team as a code owner October 30, 2024 05:02
Copy link

linux-foundation-easycla bot commented Oct 30, 2024

CLA Missing ID CLA Not Signed

Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for fdc3 ready!

Name Link
🔨 Latest commit a996d39
🔍 Latest deploy log https://app.netlify.com/sites/fdc3/deploys/6721be024e6759000860cf44
😎 Deploy Preview https://deploy-preview-1409--fdc3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@robmoffat
Copy link
Member

@sivaprasadanakarla,

This is amazing, thank you! I assume you are part of the Citi Hackathon?

Can you share who you work for if anyone, so that we can begin the CLA process?

thanks,
Rob

@@ -1476,7 +1476,7 @@ Not implemented
</TabItem>
</Tabs>

Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard <2.0.
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard\<2.0.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The escape in all these instances replaced the space so resulting format is now "standard<2.0"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard\<2.0.
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard &lt;2.0.

@@ -138,7 +138,7 @@ A launcher can then easily construct a URI by:
3. URI port is default `https/443`, but can be overridden by the launcher
4. URI url is by default `/api/appd/(version)/apps` . Calls that are made without version MUST automatically default to latest, i.e. `/api/appd/apps/app1` should return the same result as `/api/appd/v2/apps/app1".

The resulting URI to retrieve application data for `app1` would be <https://appd.foo.com/api/appd/v2/apps/[email protected]>
The resulting URI to retrieve application data for `app1` would be https://appd.foo.com/api/appd/v2/apps/[email protected] [https://appd.foo.com/api/appd/v2/apps/[email protected]](https://appd.foo.com/api/appd/v2/apps/[email protected])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The replace on this one kept original link in place so it is now repeated.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1418

please review

@@ -8,7 +8,7 @@ sidebar_label: BaseContext

## Schema

<https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json>
https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json [https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a double link

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review

#1418

@@ -24,7 +24,7 @@ can be expected to have, but this can always be extended with custom fields as a

## Schema

<https://fdc3.finos.org/schemas/next/context/context.schema.json>
https://fdc3.finos.org/schemas/next/context/context.schema.json [https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible double link

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review

#1418

@@ -8,7 +8,7 @@ sidebar_label: DocumentedContext

## Schema

<https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json>
https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json [https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible double link

@@ -8,7 +8,7 @@ sidebar_label: DocumentedContext

## Schema

<https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json>
https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json [https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json [https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)
[https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review

#1418

@@ -24,7 +24,7 @@ can be expected to have, but this can always be extended with custom fields as a

## Schema

<https://fdc3.finos.org/schemas/next/context/context.schema.json>
https://fdc3.finos.org/schemas/next/context/context.schema.json [https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
https://fdc3.finos.org/schemas/next/context/context.schema.json [https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json)
[https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review

#1418

@@ -138,7 +138,7 @@ A launcher can then easily construct a URI by:
3. URI port is default `https/443`, but can be overridden by the launcher
4. URI url is by default `/api/appd/(version)/apps` . Calls that are made without version MUST automatically default to latest, i.e. `/api/appd/apps/app1` should return the same result as `/api/appd/v2/apps/app1".

The resulting URI to retrieve application data for `app1` would be <https://appd.foo.com/api/appd/v2/apps/[email protected]>
The resulting URI to retrieve application data for `app1` would be https://appd.foo.com/api/appd/v2/apps/[email protected] [https://appd.foo.com/api/appd/v2/apps/[email protected]](https://appd.foo.com/api/appd/v2/apps/[email protected])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The resulting URI to retrieve application data for `app1` would be https://appd.foo.com/api/appd/v2/apps/[email protected] [https://appd.foo.com/api/appd/v2/apps/[email protected]](https://appd.foo.com/api/appd/v2/apps/[email protected])
The resulting URI to retrieve application data for `app1` would be [https://appd.foo.com/api/appd/v2/apps/[email protected]](https://appd.foo.com/api/appd/v2/apps/[email protected])

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review

#1418

@@ -8,7 +8,7 @@ sidebar_label: BaseContext

## Schema

<https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json>
https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json [https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json [https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)
[https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json](https://github.com/finos/FDC3/tree/main/schemas/context/context.schema.json)

@@ -97,7 +97,7 @@ or in JSON Schema as:

:::note

This is a simplified version of the schema for illustrative purposes, the fully documented Context schema, which is composed with other FDC3 Standard context schemas, can be found at: <https://fdc3.finos.org/schemas/next/context/context.schema.json>.
This is a simplified version of the schema for illustrative purposes, the fully documented Context schema, which is composed with other FDC3 Standard context schemas, can be found at: https://fdc3.finos.org/schemas/next/context/context.schema.json [https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is a simplified version of the schema for illustrative purposes, the fully documented Context schema, which is composed with other FDC3 Standard context schemas, can be found at: https://fdc3.finos.org/schemas/next/context/context.schema.json [https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json).
This is a simplified version of the schema for illustrative purposes, the fully documented Context schema, which is composed with other FDC3 Standard context schemas, can be found at: [https://fdc3.finos.org/schemas/next/context/context.schema.json](https://fdc3.finos.org/schemas/next/context/context.schema.json).

@@ -21,7 +21,7 @@ To run the website locally

```yarn start```

This will open the home page or browse to <https://localhost:3000>
This will open the home page or browse to https://localhost:3000 [https://localhost:3000](https://localhost:3000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This will open the home page or browse to https://localhost:3000 [https://localhost:3000](https://localhost:3000)
This will open the home page or browse to [https://localhost:3000](https://localhost:3000)

@sivaprasadanakarla
Copy link
Author

Hi @robmoffat ,
Thank you, we are part of Citi Hackathon.

Jamie Slome is our Org CLA manager.

@kriswest
Copy link
Contributor

kriswest commented Nov 4, 2024

/easycla

@kriswest
Copy link
Contributor

kriswest commented Nov 4, 2024

HI @sivaprasadanakarla, please take a look at the EasyCLA message above. A couple of commits in your PR appear to be missing author information, which will need to be corrected. See the help files at: https://linuxfoundation.atlassian.net/wiki/spaces/LP/pages/160923756/Missing+ID+on+Commit+but+I+have+an+agreement+on+file and https://docs.github.com/en/pull-requests/committing-changes-to-your-project/troubleshooting-commits/why-are-my-commits-linked-to-the-wrong-user to help you corrrect this.

Once done, the first error in the EasyCLA comment should disappear. Then to resolve the second one, please cklick on the Please click here to be authorized link. This will take you to an authorization form that will help you send a message to @JamieSlome to authorize you against the CLA.

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sivaprasadanakarla , many thanks for taking this on. We have another overlapping PR #1406 that also addresses #1371 which we may need to combine with this one - there are merits to both and corrections are needed in both. It might be worth comparing the two PRs, see:

In particular, take a look at some of the escapes used in the other PR.

@@ -11,7 +11,7 @@ export default function Training() {

<div className={styles.trainingList}>
<div className={styles.trainingItem}>
<h2>Introduction to FDC3 (LFEL1000)</h2>
<h2>Introduction to FDC3 (LFEL1000)</h2>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing a double space?

@@ -725,7 +725,7 @@ await fdc3.raiseIntentForContext(context, targetAppIdentifier);
addContextListener(handler: ContextHandler): Promise<Listener>;
```

Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard <2.0.
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard\<2.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad escape, use < and make sure you don't lose the space

@@ -759,7 +759,7 @@ Alias to the [`joinUserChannel`](#joinuserchannel) function provided for backwar
open(name: String, context?: Context): Promise<AppIdentifier>;
```

Version of `open` that launches an app by name rather than `AppIdentifier`. Provided for backwards compatibility with versions of the FDC3 Standard <2.0.
Version of `open` that launches an app by name rather than `AppIdentifier`. Provided for backwards compatibility with versions of the FDC3 Standard\<2.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad escape, use < and make sure you don't lose the space

@@ -771,7 +771,7 @@ Version of `open` that launches an app by name rather than `AppIdentifier`. Prov
raiseIntent(intent: string, context: Context, name: String): Promise<IntentResolution>;
```

Version of `raiseIntent` that targets an app by name rather than `AppIdentifier`. Provided for backwards compatibility with versions of the FDC3 Standard <2.0.
Version of `raiseIntent` that targets an app by name rather than `AppIdentifier`. Provided for backwards compatibility with versions of the FDC3 Standard\<2.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad escape, use < and make sure you don't lose the space

@@ -783,7 +783,7 @@ Version of `raiseIntent` that targets an app by name rather than `AppIdentifier`
raiseIntentForContext(context: Context, name: String): Promise<IntentResolution>;;
```

Version of `raiseIntentForContext` that targets an app by name rather than `AppIdentifier`. Provided for backwards compatibility with versions of the FDC3 Standard <2.0.
Version of `raiseIntentForContext` that targets an app by name rather than `AppIdentifier`. Provided for backwards compatibility with versions of the FDC3 Standard\<2.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad escape, use < and make sure you don't lose the space

@@ -34,7 +34,7 @@ For each intent, it reference the applications that support that intent.
interface AppMetadata extends AppIdentifier {
/**
* The 'friendly' app name. This field was used with the `open` and
* `raiseIntent` calls in FDC3 <2.0, which now require an `AppIdentifier`
* `raiseIntent` calls in FDC3\<2.0, which now require an `AppIdentifier`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad escape, use < and make sure you don't lose the space

@@ -1476,7 +1476,7 @@ Not implemented
</TabItem>
</Tabs>

Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard <2.0.
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard\<2.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard\<2.0.
Adds a listener for incoming context broadcasts from the Desktop Agent. Provided for backwards compatibility with versions FDC3 standard &lt;2.0.

@@ -7,7 +7,7 @@ title: API Overview (next)
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

The role of FDC3 API is to establish a baseline interface for interoperability between applications. Because FDC3 is largely an agreement between existing platforms and applications, standards should be optimized for ease of adoption rather than functional completeness. Functionality absent from a FDC3 specification is in no way a commentary on its importance.
The role of FDC3 API is to establish a baseline interface for interoperability between applications. Because FDC3 is largely an agreement between existing platforms and applications, standards should be optimized for ease of adoption rather than functional completeness. Functionality absent from a FDC3 specification is in no way a commentary on its importance.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why introduce a double space?

- **RFC 5646**, _Tags for Identifying Languages, September 2009_, <https://datatracker.ietf.org/doc/html/rfc5646>.
- **TypeScript Programming Language**, <https://www.typescriptlang.org/>.
- **Web Application Manifest**, _W3C Working Draft_, February 2022 <https://www.w3.org/TR/appmanifest/>
- **Apache 2.0 open-source license**, https://www.apache.org/licenses/LICENSE-2.0 [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are all creating double links, should be:

Suggested change
- **Apache 2.0 open-source license**, https://www.apache.org/licenses/LICENSE-2.0 [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0).
- **Apache 2.0 open-source license**, [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0).

@@ -24,7 +24,7 @@ To create a new version of the website, a number of NPM scripts need to be run t

3. Check that the version script has done what it needs to:
- The new website version should exist in _website/versioned_docs_
- Links to schema files should have been updated to the versioned links, e.g. check *website/versioned_docs/version-2.1/context/ref/Context.md* has a link like <https://fdc3.finos.org/schemas/2.1/context/context.schema.json> (where '2.1' would be 'next' in the pre-draft)
- Links to schema files should have been updated to the versioned links, e.g. check *website/versioned_docs/version-2.1/context/ref/Context.md* has a link like https://fdc3.finos.org/schemas/2.1/context/context.schema.json [https://fdc3.finos.org/schemas/2.1/context/context.schema.json](https://fdc3.finos.org/schemas/2.1/context/context.schema.json) (where '2.1' would be 'next' in the pre-draft)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more double links

Suggested change
- Links to schema files should have been updated to the versioned links, e.g. check *website/versioned_docs/version-2.1/context/ref/Context.md* has a link like https://fdc3.finos.org/schemas/2.1/context/context.schema.json [https://fdc3.finos.org/schemas/2.1/context/context.schema.json](https://fdc3.finos.org/schemas/2.1/context/context.schema.json) (where '2.1' would be 'next' in the pre-draft)
- Links to schema files should have been updated to the versioned links, e.g. check *website/versioned_docs/version-2.1/context/ref/Context.md* has a link like [https://fdc3.finos.org/schemas/2.1/context/context.schema.json](https://fdc3.finos.org/schemas/2.1/context/context.schema.json) (where '2.1' would be 'next' in the pre-draft)

@kriswest
Copy link
Contributor

kriswest commented Nov 6, 2024

superseded by #1418

@kriswest kriswest closed this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants