Skip to content

Commit 177202f

Browse files
authored
Fix broken video links on Java and Python language pages (#10136)
The <source src> paths used absolute /docs/languages/<lang>/*.mp4 URLs, which the website build does not rewrite, so the videos 404 on the live site. The video files actually live under docs/languages/images/<lang>/. Update the six video sources to the relative images/<lang>/ convention so the build rewrites them to the correct /assets/ URLs, matching the images already used on the same pages. Same fix as #5718 (issue #5717), applied to the two remaining pages it missed. - java.md: package-viewer, Intellisense, resolve-main, testng - python.md: python-linting, python-debugging
1 parent f29129b commit 177202f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/languages/java.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ For example, Maven, Eclipse, and Gradle Java projects are supported through [Lan
122122
With [Maven for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven), you can generate projects from [Maven Archetypes](https://maven.apache.org/guides/introduction/introduction-to-archetypes.html), browse through all the Maven projects within your workspace, and execute Maven goals easily from an embedded explorer. Projects can also be created and managed with the [Project Manager for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency) extension.
123123

124124
<video autoplay loop muted playsinline controls title="Using the Java Projects view from the Project Manager for Java extension">
125-
<source src="/docs/languages/java/package-viewer.mp4" type="video/mp4">
125+
<source src="images/java/package-viewer.mp4" type="video/mp4">
126126
</video>
127127

128128
Visual Studio Code also supports working with standalone Java files outside of a Java project, described in the [Getting Started with Java](/docs/java/java-tutorial.md) tutorial.
@@ -146,7 +146,7 @@ One of the key advantages of VS Code is speed. When you open your Java source fi
146146
[IntelliSense](/docs/editing/intellisense.md) is a general term for language features, including intelligent code completion (in-context method and variable suggestions) across all your files and for both built-in and third-party modules. VS Code supports code completion and IntelliSense for Java through [Language Support for Java™ by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java). It also provides AI-assisted IntelliSense called [IntelliCode](https://visualstudio.microsoft.com/services/intellicode/) by putting what you're most likely to use at the top of your completion list.
147147

148148
<video autoplay loop muted playsinline controls title="Java inline code completions and hovers">
149-
<source src="/docs/languages/java/intellisense.mp4" type="video/mp4">
149+
<source src="images/java/Intellisense.mp4" type="video/mp4">
150150
</video>
151151

152152
### Enhance completions with AI
@@ -177,7 +177,7 @@ We support a wide range of code snippet shortcuts and postfix completion feature
177177
Starting a debugging session is easy: click the **Run|Debug** button available at the CodeLens of your `main()` function, or press `kb(workbench.action.debug.start)`. The debugger will automatically generate the proper configuration for you.
178178

179179
<video autoplay loop muted playsinline controls title="Setting a breakpoint, launching the debugging, and using Hot Code Replace">
180-
<source src="/docs/languages/java/resolve-main.mp4" type="video/mp4">
180+
<source src="images/java/resolve-main.mp4" type="video/mp4">
181181
</video>
182182

183183
Although it's lightweight, the Java debugger supports advanced features such as expression evaluation, conditional breakpoints, and [Hot Code Replace](/docs/java/java-debugging.md#hot-code-replace). For more debugging-related information, visit [Java Debugging](/docs/java/java-debugging.md).
@@ -187,7 +187,7 @@ Although it's lightweight, the Java debugger supports advanced features such as
187187
With the support from the [Test Runner for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test) extension, you can easily run, debug, and manage your JUnit and TestNG test cases.
188188

189189
<video autoplay loop muted playsinline controls title="Running tests and investigating a failed test">
190-
<source src="/docs/languages/java/testng.mp4" type="video/mp4">
190+
<source src="images/java/testng.mp4" type="video/mp4">
191191
</video>
192192

193193
For more about testing, read [Testing Java](/docs/java/java-testing.md).

docs/languages/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Linting analyzes your Python code for potential errors, making it easy to naviga
6868
The Python extension can apply a number of different linters including Pylint, pycodestyle, Flake8, mypy, pydocstyle, prospector, and pylama. See [Linting](/docs/python/linting.md).
6969

7070
<video autoplay loop muted playsinline controls title="Python linting video">
71-
<source src="/docs/languages/python/python-linting.mp4" type="video/mp4">
71+
<source src="images/python/python-linting.mp4" type="video/mp4">
7272
</video>
7373

7474
## Debugging
@@ -80,7 +80,7 @@ For more specific information on debugging in Python, such as configuring your `
8080
Additionally, the [Django](/docs/python/tutorial-django.md) and [Flask](/docs/python/tutorial-flask.md) tutorials provide examples of how to implement debugging in the context of web applications, including debugging Django templates.
8181

8282
<video autoplay loop muted playsinline controls title="Python debugging video">
83-
<source src="/docs/languages/python/python-debugging.mp4" type="video/mp4">
83+
<source src="images/python/python-debugging.mp4" type="video/mp4">
8484
</video>
8585

8686
## Environments

0 commit comments

Comments
 (0)