We present a flexible design to realize the entanglement between two distant semiconductor quantum dots (QDs) embedded in separated photonic crystal nanobeam cavities. When bridged by a largely detuned microring cavity, photonic supermodes between two distant nanobeam cavities are formed via whispering gallery modes (WGMs). Due to the large detuning, WGMs in the microring exhibit almost no photonic excitation, showing the "dark WGMs." With the dyadic Green's functions of the nano-structure and the resolvent operators of the Hamiltonian, we numerically investigate the entanglement dynamics of two distant QDs. Furthermore, we prove that the entanglement can be tuned by adjusting the distances between the cavities. Such a scheme paves an efficient way for realizing a scalable quantum network in a solid-state system.