diff --git a/aspnet/client-side/bootstrap.rst b/aspnet/client-side/bootstrap.rst index 36de6479ee..ef0f13a18b 100644 --- a/aspnet/client-side/bootstrap.rst +++ b/aspnet/client-side/bootstrap.rst @@ -1,3 +1,5 @@ +.. _bootstrap-index: + Building Beautiful, Responsive Sites with Bootstrap =================================================== diff --git a/aspnet/client-side/bundling-and-minification.rst b/aspnet/client-side/bundling-and-minification.rst index 593dc4066f..ce814f5521 100644 --- a/aspnet/client-side/bundling-and-minification.rst +++ b/aspnet/client-side/bundling-and-minification.rst @@ -1,5 +1,7 @@ .. include:: /../common/stub-topic.txt +.. _bundling-minification-index: + |stub-icon| Bundling and Minification ===================================== diff --git a/aspnet/client-side/index.rst b/aspnet/client-side/index.rst index 45d3775f0e..c4d48da666 100644 --- a/aspnet/client-side/index.rst +++ b/aspnet/client-side/index.rst @@ -1,3 +1,5 @@ +.. _client-side-development-index: + Client-Side Development ----------------------- diff --git a/aspnet/client-side/using-gulp.rst b/aspnet/client-side/using-gulp.rst index 1d7983d993..884ee1bc5f 100644 --- a/aspnet/client-side/using-gulp.rst +++ b/aspnet/client-side/using-gulp.rst @@ -1,3 +1,5 @@ +.. _using-gulp: + Using Gulp ========== diff --git a/aspnet/conceptual-overview/dotnetcore.rst b/aspnet/conceptual-overview/dotnetcore.rst index 35149270c9..ba5f168b82 100644 --- a/aspnet/conceptual-overview/dotnetcore.rst +++ b/aspnet/conceptual-overview/dotnetcore.rst @@ -1,3 +1,5 @@ +.. _introducing-dotnet-core: + Introducing .NET Core ===================== diff --git a/aspnet/conceptual-overview/understanding-aspnet5-apps.rst b/aspnet/conceptual-overview/understanding-aspnet5-apps.rst index ffa3f14120..4bd171b461 100644 --- a/aspnet/conceptual-overview/understanding-aspnet5-apps.rst +++ b/aspnet/conceptual-overview/understanding-aspnet5-apps.rst @@ -35,6 +35,8 @@ You can see which framework is currently being targeted in the web application p By default, the **Use Specific Runtime** checkbox within the **Debug** tab is unchecked. To target a specific version, check the box and choose the appropriate *Version*, *Platform*, and *Architecture*. +.. _the-project-json-file: + The project.json File --------------------- diff --git a/aspnet/fundamentals/routing.rst b/aspnet/fundamentals/routing.rst index 84b75caf25..47041ee7e9 100644 --- a/aspnet/fundamentals/routing.rst +++ b/aspnet/fundamentals/routing.rst @@ -1,5 +1,7 @@ .. include:: /../common/stub-topic.txt +.. _routing-index: + |stub-icon| Routing =================== diff --git a/aspnet/fundamentals/startup.rst b/aspnet/fundamentals/startup.rst index 67134501ac..736b003c2d 100644 --- a/aspnet/fundamentals/startup.rst +++ b/aspnet/fundamentals/startup.rst @@ -1,3 +1,5 @@ +.. _application-startup: + Application Startup =================== diff --git a/mvc/aspnet.inv b/mvc/aspnet.inv index 565d1e023d..31239e36ab 100644 Binary files a/mvc/aspnet.inv and b/mvc/aspnet.inv differ diff --git a/mvc/migration/migratingfrommvc5.rst b/mvc/migration/migratingfrommvc5.rst index 5863c73d15..4efb1d6a89 100644 --- a/mvc/migration/migratingfrommvc5.rst +++ b/mvc/migration/migratingfrommvc5.rst @@ -42,7 +42,7 @@ Configure the site to use MVC The ``scripts`` section is used to denote when specified build automation scripts should run. Visual Studio now has built-in support for running scripts before and after specific events. The ``scripts`` section above specifies `NPM `__, `Bower `__ and `Gulp `__ scripts should run on the ``prepublish`` stage. We'll talk about NPM, Bower, and Gulp later in the tutorial. Note the trailing "," added to the end of the ``publishExclude`` section. -For more information, see `project.json `_ and `Introducing .NET Core `_. +For more information, see :ref:`project.json ` and :ref:`Introducing .NET Core `. - Open the *Startup.cs* file and change the code to match the following: @@ -53,7 +53,7 @@ For more information, see `project.json `_ and `Routing `__. +``UseStaticFiles`` adds the static file handler. As mentioned previously, the ASP.NET runtime is modular, and you must explicitly opt in to serve static files. For more information, see :ref:`Application Startup ` and :ref:`Routing `. Add a controller and view ------------------------- @@ -133,7 +133,7 @@ Upon saving the file, Bower will automatically download the dependencies to the .. image:: migratingfrommvc5/_static/search.png -See `Manage Client-Side Packages with Bower `__ for more information. +See :ref:`Manage Client-Side Packages with Bower ` for more information. Gulp ---- @@ -155,7 +155,7 @@ The code above performs these functions: - Minifies the JavaScript and CSS files. - Bundles (concatenates) the JavaScript and CSS files. -See `Using Gulp with ASP.NET 5 and Visual Studio `__. +See :ref:`Using Gulp with ASP.NET 5 and Visual Studio `. NPM --- @@ -181,7 +181,7 @@ Open the *package.json* file, and replace the contents with the following: Right-click on *gulpfile.js* and select **Task Runner Explorer**. Double-click on a task to run it. -For more information, see `Client-Side Development in ASP.NET 5 `_. +For more information, see :ref:`Client-Side Development in ASP.NET 5 `. .. _migrate-layout-file: @@ -226,14 +226,14 @@ View the site in the browser. It should now load correctly, with the expected st Configure Bundling ------------------ -The MVC 5 starter web template utilized the MVC runtime support for bundling. In ASP.NET MVC 6, this functionality is performed as part of the build process using `Gulp `__. We've previously configured bundling and minification; all that's left is to change the references to Bootstrap, jQuery and other assets to use the bundled and minified versions. You can see how this is done in the layout file (*Views/Shared/_Layout.cshtml*) of the full template project. See `Bundling and Minification `__ for more information. +The MVC 5 starter web template utilized the MVC runtime support for bundling. In ASP.NET MVC 6, this functionality is performed as part of the build process using `Gulp `__. We've previously configured bundling and minification; all that's left is to change the references to Bootstrap, jQuery and other assets to use the bundled and minified versions. You can see how this is done in the layout file (*Views/Shared/_Layout.cshtml*) of the full template project. See :ref:`Bundling and Minification ` for more information. Additional Resources -------------------- - `Migrating an ASP.NET MVC 5 App to ASP.NET 5 `__ -- `Using Gulp `__ -- `Client-Side Development in ASP.NET 5 `_ -- `Manage Client-Side Packages with Bower `_ -- `Bundling and Minification `__ -- `Bootstrap for ASP.NET 5 `_ +- :ref:`Using Gulp ` +- :ref:`Client-Side Development in ASP.NET 5 ` +- :ref:`Manage Client-Side Packages with Bower ` +- :ref:`Bundling and Minification ` +- :ref:`Bootstrap for ASP.NET 5 `