Skip to content

Commit

Permalink
openvidu-components-angular: Update links in documentation to use the…
Browse files Browse the repository at this point in the history
… latest version
  • Loading branch information
juancarmore committed Dec 18, 2024
1 parent dead485 commit b829142
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions openvidu-components-angular/generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ -z "$BASEHREF_VERSION" ]]; then
fi

# Replace version from "stable" to the specified one in all TypeDoc links
grep -rl '/en/stable/' projects src | xargs sed -i -e 's|/en/stable/|/en/'${BASEHREF_VERSION}'/|g'
grep -rl '/latest/' projects src | xargs sed -i -e 's|/latest/|/'${BASEHREF_VERSION}'/|g'

# Replace testapp README by openvidu-components-angular README
mv README.md README-testapp.md
Expand All @@ -16,7 +16,7 @@ cp ./projects/openvidu-components-angular/README.md .
npm run doc:build

# Return links to "stable" version
grep -rl '/en/'${BASEHREF_VERSION}'/' projects src | xargs sed -i -e 's|/en/'${BASEHREF_VERSION}'/|/en/stable/|g'
grep -rl '/'${BASEHREF_VERSION}'/' projects src | xargs sed -i -e 's|/'${BASEHREF_VERSION}'/|/latest/|g'

# Undo changes with READMEs
rm README.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Angular Components are the simplest way to create real-time videoconferencing ap

## Getting Started

To get started with OpenVidu Components Angular, visit our [**Getting Started guide**](https://openvidu.io/docs/ui-components/angular-components/).
To get started with OpenVidu Components Angular, visit our [**Getting Started guide**](https://openvidu.io/latest/docs/ui-components/angular-components/).

1. Create an Angular Project (>= 17.0.0)

Expand Down Expand Up @@ -92,7 +92,7 @@ You can also customize the styles in your `styles.scss` file:
## API Documentation
For detailed information on OpenVidu Angular Components, refer to our [**API Reference**](https://openvidu.io/docs/reference-docs/openvidu-components-angular).
For detailed information on OpenVidu Angular Components, refer to our [**API Reference**](https://openvidu.io/latest/docs/reference-docs/openvidu-components-angular/).
## Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export class ProFeatureDialogTemplateComponent {
}

seeMore() {
window.open('https://docs.openvidu.io/en/stable/openvidu-pro/', '_blank')?.focus();
window.open('https://openvidu.io/pricing/#openvidu-pro', '_blank')?.focus();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni

/**
* Provides event notifications that fire when OpenVidu Room is created.
* It provides the {@link https://openvidu.io/docs/getting-started/#room Room} payload as event data.
* It provides the {@link https://openvidu.io/latest/docs/getting-started/#room Room} payload as event data.
*/
@Output() onRoomCreated: EventEmitter<Room> = new EventEmitter<Room>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ import { Directive, TemplateRef, ViewContainerRef } from '@angular/core';
* ```
* <!--ovToolbar-end-tutorial-->
*
* You can run the associated tutorial [here](https://docs.openvidu.io/en/stable/components/openvidu-custom-toolbar).
* You can run the associated tutorial [here](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-toolbar/).
*/
@Directive({
selector: '[ovToolbar]'
Expand Down Expand Up @@ -254,7 +254,7 @@ export class ToolbarDirective {
* ```
* <!--ovToolbarAdditionalButtons-end-tutorial-->
*
* To follow a step-by-step tutorial on this feature, please visit [this link](https://docs.openvidu.io/en/stable/components/openvidu-toolbar-buttons).
* To follow a step-by-step tutorial on this feature, please visit [this link](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-toolbar-buttons/).
*/

@Directive({
Expand Down Expand Up @@ -377,7 +377,7 @@ export class ToolbarAdditionalButtonsDirective {
* ```
* <!--ovToolbarAdditionalPanelButtons-end-tutorial-->
*
* You can run the associated tutorial [here](https://docs.openvidu.io/en/stable/components/openvidu-toolbar-panel-buttons).
* You can run the associated tutorial [here](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-toolbar-panel-buttons/).
*/
@Directive({
selector: '[ovToolbarAdditionalPanelButtons]'
Expand Down Expand Up @@ -526,7 +526,7 @@ export class ToolbarAdditionalPanelButtonsDirective {
* <!--ovPanel-end-tutorial-->
*
*
* For a comprehensive tutorial on implementing custom panels, please refer to the associated guide [here](https://docs.openvidu.io/en/stable/components/openvidu-custom-panels).
* For a comprehensive tutorial on implementing custom panels, please refer to the associated guide [here](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-panels/).
*/
@Directive({
selector: '[ovPanel]'
Expand Down Expand Up @@ -712,7 +712,7 @@ export class PanelDirective {
* ```
* <!--ovAdditionalPanels-end-tutorial-->
*
* For detailed instructions, refer to the tutorial available [here](https://docs.openvidu.io/en/stable/components/openvidu-additional-panels).
* For detailed instructions, refer to the tutorial available [here](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-additional-panels/).
*/
@Directive({
selector: '[ovAdditionalPanels]'
Expand Down Expand Up @@ -889,7 +889,7 @@ export class AdditionalPanelsDirective {
*
*
* For a step-by-step tutorial on how to replace the chat template with just a few lines of code,
* check out our comprehensive guide: [Customizing the Chat Panel](https://docs.openvidu.io/en/stable/components/openvidu-custom-chat-panel).
* check out our comprehensive guide: [Customizing the Chat Panel](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-chat-panel/).
*/
@Directive({
selector: '[ovChatPanel]'
Expand Down Expand Up @@ -1015,7 +1015,7 @@ export class BackgroundEffectsPanelDirective {
* <!--ovActivitiesPanel-end-tutorial-->
*
* For a step-by-step tutorial on how to replace the activities template with just a few lines of code,
* check out our comprehensive guide: [Customizing the Activities Panel](https://docs.openvidu.io/en/stable/components/openvidu-custom-activities-panel).
* check out our comprehensive guide: [Customizing the Activities Panel](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-activities-panel/).
*/
@Directive({
selector: '[ovActivitiesPanel]'
Expand Down Expand Up @@ -1184,7 +1184,7 @@ export class ActivitiesPanelDirective {
* ```
* <!--ovParticipantsPanel-end-tutorial-->
*
* For a comprehensive tutorial on customizing the participants panel, please visit [this link](https://docs.openvidu.io/en/stable/components/openvidu-custom-participants-panel).
* For a comprehensive tutorial on customizing the participants panel, please visit [this link](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-participants-panel/).
*/

@Directive({
Expand Down Expand Up @@ -1321,7 +1321,7 @@ export class ParticipantsPanelDirective {
* ```
* <!--ovParticipantPanelItem-end-tutorial-->
*
* For a detailed tutorial on customizing participant panel items, please visit [this link](https://docs.openvidu.io/en/stable/components/openvidu-custom-participant-panel-item).
* For a detailed tutorial on customizing participant panel items, please visit [this link](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-participant-panel-item/).
*/

@Directive({
Expand Down Expand Up @@ -1463,7 +1463,7 @@ export class ParticipantPanelItemDirective {
* ```
* <!--ovParticipantPanelItemElements-end-tutorial-->
*
* For a comprehensive tutorial on adding elements to participant panel items, please visit [this link](https://docs.openvidu.io/en/stable/components/openvidu-custom-participant-panel-item-elements).
* For a comprehensive tutorial on adding elements to participant panel items, please visit [this link](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-participant-panel-item-element/).
*/

@Directive({
Expand Down Expand Up @@ -1659,7 +1659,7 @@ export class ParticipantPanelItemElementsDirective {
* <!--ovLayout-end-tutorial-->
*
*
* For a comprehensive guide on implementing custom layouts, please refer to the associated tutorial [here](https://docs.openvidu.io/en/stable/components/openvidu-custom-layout).
* For a comprehensive guide on implementing custom layouts, please refer to the associated tutorial [here](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-layout/).
*/
@Directive({
selector: '[ovLayout]'
Expand Down Expand Up @@ -1789,7 +1789,7 @@ export class LayoutDirective {
* ```
* <!--ovStream-end-tutorial-->
*
* For a detailed tutorial on customizing the stream component, please visit [this link](https://docs.openvidu.io/en/stable/components/openvidu-custom-stream).
* For a detailed tutorial on customizing the stream component, please visit [this link](https://openvidu.io/latest/docs/tutorials/angular-components/openvidu-custom-stream/).
*/

@Directive({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class TranslatePipe implements PipeTransform {
if (translation?.includes('OpenVidu PRO')) {
return translation.replace(
'OpenVidu PRO',
'<a href="https://docs.openvidu.io/en/stable/openvidu-pro/" target="_blank">OpenVidu PRO</a>'
'<a href="https://openvidu.io/pricing/#openvidu-pro" target="_blank">OpenVidu PRO</a>'
);
}
return translation;
Expand Down

0 comments on commit b829142

Please sign in to comment.