diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js
index 69cfa371d8..51621c4d80 100644
--- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js
+++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js
@@ -1,5 +1,5 @@
(function ($) {
- $(function () {
+ $(function () {
var initNavigationFilter = function (navigationContainerId) {
var $navigation = $('#' + navigationContainerId);
@@ -254,6 +254,25 @@
setQueryString();
};
+ var initDocumentNodeBreadcrumb = function (){
+ var selectedTreeRoot = $("li.nav-header.selected-tree")[0];
+ if(selectedTreeRoot)
+ {
+ var $selectedTreeRoot = $(selectedTreeRoot);
+ var firstAnchor = $selectedTreeRoot.find("a");
+
+ var documentNodeNames = $("#document-node-wrapper");
+ documentNodeNames.append('
' + firstAnchor.html() + '');
+
+ var selectedTreeItems = $selectedTreeRoot.find("ul.nav-list > li.selected-tree");
+ for (let i = 0; i < selectedTreeItems.length; i++)
+ {
+ var anchorItem = $(selectedTreeItems[i]).find("a");
+ documentNodeNames.append('
' + anchorItem.html() + '');
+ }
+ }
+ };
+
initNavigationFilter('sidebar-scroll');
initAnchorTags('.docs-page .docs-body');
@@ -261,5 +280,7 @@
initSocialShareLinks();
initSections();
+
+ initDocumentNodeBreadcrumb();
});
})(jQuery);