Skip to content

fix(samples): change samples index html hrefs #367

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

Merged
merged 1 commit into from
Jan 30, 2025
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#Runtime data
docs/
dist/
test_results/
build/
Expand Down
7 changes: 1 addition & 6 deletions copy_to_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ cp ./widgets-samples/cc/samples-cc-wc-app/app.js docs/samples-cc-wc-app/
cp ./widgets-samples/cc/samples-cc-wc-app/bundle.js docs/samples-cc-wc-app/
cp ./widgets-samples/cc/samples-cc-wc-app/index.html docs/samples-cc-wc-app/

# Update the hrefs in the copied index.html file
sed -i '' 's|http://localhost:4000/|./samples-cc-wc-app/index.html|g' docs/index.html
sed -i '' 's|http://localhost:3000/|./samples-cc-react-app/index.html|g' docs/index.html
sed -i '' 's|https://localhost:9000/|./samples-meeting-app/index.html|g' docs/index.html

echo "All dist folders, specific files from samples-cc-wc-app, and index.html from widgets-samples have been copied to the docs directory, and hrefs have been updated."
echo "Samples created"
6 changes: 3 additions & 3 deletions widgets-samples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ <h2 class="page-header">Samples</h2>
Get started quickly with the Cisco Webex Widgets with the following samples:
</p>
<div class="list-group">
<a href="http://localhost:4000/" target="_blank" rel="noopener noreferrer" class="list-group-item">Contact Center widgets as web-component</a>
<a href="http://localhost:3000/" target="_blank" rel="noopener noreferrer" class="list-group-item">Contact Center widgets in a react app</a>
<a href="https://localhost:9000/" target="_blank" rel="noopener noreferrer" class="list-group-item">Meetings widgets in a react app</a>
<a href="./samples-cc-wc-app/index.html" target="_blank" rel="noopener noreferrer" class="list-group-item">Contact Center widgets as web-component</a>
<a href="./samples-cc-react-app/index.html" target="_blank" rel="noopener noreferrer" class="list-group-item">Contact Center widgets in a react app</a>
<a href="./samples-meeting-app/index.html" target="_blank" rel="noopener noreferrer" class="list-group-item">Meetings widgets in a react app</a>
</div>
</div>
</div>
Expand Down