Skip to content

Commit

Permalink
Merge pull request #154 from datacamp/feat/migrate-to-datalab
Browse files Browse the repository at this point in the history
[CT-9755] Migrate from Workspace to DataLab
  • Loading branch information
rv2e authored Apr 22, 2024
2 parents 3a58126 + 7b7bb2f commit 993b6d6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function TopicPage({ topicData }: Props) {
const registerClicks = (label) => {
ReactGA4.event({
action: 'Click',
category: 'Run in workspace',
category: 'Run in DataLab',
label,
});
};
Expand Down Expand Up @@ -167,7 +167,7 @@ export default function TopicPage({ topicData }: Props) {
<h2>Examples</h2>
<a
className="absolute p-2 text-sm rounded-md top-0 right-0 hover:bg-green-400 md:p-3 md:text-base md:top-16 md:right-2.5"
href={`https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_workspace`}
href={`https://www.datacamp.com/datalab/preview?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_datalab`}
onClick={() => registerClicks('Button')}
style={{
background: 'rgba(3, 239, 98)',
Expand All @@ -190,11 +190,11 @@ export default function TopicPage({ topicData }: Props) {
<p>
Run the code above in your browser using{' '}
<a
href={`https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_workspace`}
href={`https://www.datacamp.com/datalab/preview?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_datalab`}
onClick={() => registerClicks('Link')}
target="_blank"
>
DataCamp Workspace
DataLab
</a>
</p>
</div>
Expand Down

0 comments on commit 993b6d6

Please sign in to comment.